Skip to content

fix(watch): fold sentinel '-' into the empty session-id path - #857

Open
apstndb wants to merge 3 commits into
fujibee:mainfrom
apstndb:fix/855-watch-sentinel-fold
Open

fix(watch): fold sentinel '-' into the empty session-id path#857
apstndb wants to merge 3 commits into
fujibee:mainfrom
apstndb:fix/855-watch-sentinel-fold

Conversation

@apstndb

@apstndb apstndb commented Aug 17, 2026

Copy link
Copy Markdown

Fixes #855.

Restores the #477 one-line fold of sentinel - in watch.sh, and the bats case that locked it. Callers that pass "${GROK_SESSION_ID:--}" are unchanged. Problem, repro, and why this is not a caller fix are on the issue.

Independently mergeable. #858 no longer contains these commits (unstacked). Cursor monitor still needs this fold at runtime ("${CURSOR_CONVERSATION_ID:--}"), so please land this before #858. #858 stays a draft until then.

Test plan

  • bats tests/test_watch.bats --filter "sentinel '-' session_id"
  • .github/scripts/check-enforced-assertions.sh at baseline
  • CI green

apstndb and others added 2 commits August 18, 2026 05:00
…#855)

Callers still pass "${GROK_SESSION_ID:--}" from fujibee#477, but watch.sh stopped folding the literal dash, so monitor re-eval wrote watch.-.pid. Restore the one-line fold and the bats case that locked it.

Co-authored-by: Cursor <cursoragent@cursor.com>
…old case

The restored bats locks the fujibee#477 fold, not the later regression ticket.

Co-authored-by: Cursor <cursoragent@cursor.com>
Non-last `! cmd` is silent on bash 3.2, so the new fold case raised the
enforced-assertions baseline. refute fails the test on every platform.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

regression: watch.sh no longer folds sentinel -

1 participant