Skip to content

Do not report a never-bound local team as connected but not syncing - #1914

Open
fujibee wants to merge 1 commit into
mainfrom
fix/actas-never-bound-note
Open

fujibee wants to merge 1 commit into
mainfrom
fix/actas-never-bound-note

Conversation

@fujibee

@fujibee fujibee commented Nov 5, 2026

Copy link
Copy Markdown
Owner

What was wrong

actas on a local-only team (never bound to a remote) printed an "AGMSG: connected, but not syncing" block with a remote.sh sync start <team> line. The sync auto-start helper treated the "has no active remote binding" refusal from sync start as a failed start, and the agent relayed the command to the user.

Fix

scripts/lib/sync-autostart.sh skips that specific refusal: a never-bound team gets no remote note. A team that was bound and is now disconnected gets a different refusal ("is disconnected") and keeps its note. This covers session-start as well, since both callers use the helper.

Cost

No added process spawns: a builtin case on the already captured output.

Not an automatic stop

Nothing stops, refuses or steps aside; it only removes a misleading message.

Tests

New bats in tests/test_sync_autostart.bats: fresh local team, actas-claim prints status=ok and no remote/sync line; a disconnected team still prints its note. Red on old code (verified), green now. Full file and the four .github/scripts/check-*.sh gates pass.

The sync auto-start helper treated every refusal from 'sync start' as a failed
start. For a local-only team the refusal is 'has no active remote binding',
which printed a 'connected, but not syncing' block with a 'sync start' line on
every actas. Skip that refusal; a bound-then-disconnected team keeps its note.

This branch has not been deployed

No deployments
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.

1 participant