You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
afx tower start: surface the owner-guard refusal in the CLI instead of the generic 30s timeout (split from #1690 item 1) #1691
Split from #1690 (item 1 — the most urgent; items 2+3 stay there, coupled). Companion to the #1689 owner guard shipping in 3.3.4.
Problem
When the owner-lock guard refuses a second Tower, the daemon exits fast with a teaching error ("another Tower owns this DB — pid X, port Y; did you mean CODEV_AGENT_FARM_DIR?") — but afx tower start daemonizes, so the user sees only the generic "Tower server failed to respond within 30000ms" timeout, indistinguishable from the #1685 hang class. The guard's whole value is the teaching error; today it's only in tower.log.
Fix shape
The launcher (afx tower start's readiness wait) should:
Detect the fast-exit case (spawned pid dies before readiness) and stop waiting immediately instead of burning the full 30s;
Surface the daemon's refusal verbatim — read the tail of tower.log for the guard's error (or a purpose-written status/last-error file, whichever the lane judges sturdier) and print it;
Distinguish the three launcher outcomes in output: started / refused-with-reason / timed-out-still-unknown.
Regression test: a held lock + afx tower start → non-zero exit with the teaching error on stdout/stderr within seconds, not 30s of silence.
Activity
amrmelsayed commentedon Sep 16, 2026
On it! Working on a fix now.
Fix #1691: surface tower owner-guard refusal in the CLI, not a 30s ti…
Fix #1691: harden startup-outcome wait per CMAP feedback
Fix #1691: drop internal issue numbers from the user-visible refusal …
Merge pull request cluesmith#1692 from cluesmith/builder/bugfix-1691
[Bugfix #1922] Fix: test harness drops the builder session's shellper…
[Bugfix #1901] Test: only a refused connection reads as "Tower not ru…