diff --git a/utile/context_watch.ps1 b/utile/context_watch.ps1 index cadd815..78e1745 100644 --- a/utile/context_watch.ps1 +++ b/utile/context_watch.ps1 @@ -19,7 +19,9 @@ if (-not $TranscriptPath) { try { $TranscriptPath = (ConvertFrom-Json $stdin).transcript_path } catch { } } } -if (-not $TranscriptPath -or -not (Test-Path $TranscriptPath)) { +# la primul mesaj al unei sesiuni noi transcriptul inca nu e creat: fara fallback, ca sa nu raporteze alta sesiune +if ($TranscriptPath -and -not (Test-Path $TranscriptPath)) { exit 0 } +if (-not $TranscriptPath) { $dir = Join-Path $env:USERPROFILE ".claude\projects\$((Get-Location).Path -replace '[:\\/]','-')" if (Test-Path $dir) { $f = Get-ChildItem "$dir\*.jsonl" | Sort-Object LastWriteTime -Descending | Select-Object -First 1