Repository navigation
Closed
Labels
area/towerArea: Tower server / agent farm CLI
Description
Problem
On native Windows, mail to the main architect is held with busy:no-composer-marker although the architect's claude session is live and its composer is on screen. The hold never clears on its own. Reported by the owner 2026-11-18, codev 3.3.7 (local install from main at 5e328c5), claude 2.1.327.
Evidence (from ~/.agent-farm/tower.log and afx inbox)
- 2026-11-17T23:27:52Z: Tower restarted by
pnpm local-install;Reconnected shellper session → 887fdcae… (architect for codev). - 23:30:52Z:
Cron message held (busy:no-composer-marker)af-cron → architect. - 23:32:04Z:
Message held (busy:no-composer-marker): builder-task-_205 → main(a "PR ready" notification, so real work was blocked on it). - Both escalated after 60 s and are still held.
replay-snapshotlines for the same session in that window are 3.3-4.1 KB. - An older message from 2026-11-02 is held with the same detail.
All three current holds post-date a Tower restart that reconnected to an existing session. Not established: whether a session that Tower spawned fresh shows the same.
What is and is not known
- The detail is
no-composer-marker(the gate found no row matching/^[❯›]/in the mirror), notuser-text. The owner's impression is that the gate believes the input has text; the log from earlier on 2026-11-17 does showbusy:user-textandbusy:composer-redrawholds tomain, which were not examined and may be a second problem. - Ruled out by reading: the mirror is seeded on reconnect (
PtySession.attachShellper,packages/codev/src/terminal/pty-session.ts:318-405), so "mirror starts empty after reconnect" is not the cause as designed. Whether the seed is sufficient under ConPTY (claude repaints incrementally; ConPTY re-renders) is open. - Candidates, none tested: the reconnect seed under ConPTY does not contain the composer row; geometry mismatch between the mirror and the real TUI after reconnect (F1 — Tower-vs-PTY dimension divergence causes indefinite false-busy (render gate) #1482 territory); the composer row not starting with the marker in this claude version or layout; a held message never being re-evaluated after the screen becomes classifiable.
Fix shape
- Capture what the gate sees: dump the mirror's viewport for the held architect session at the moment of a
no-composer-markerverdict (the Spec 1658 recorder's scrubbed.diagnosticoutput is the existing tool), on a session reconnected after a Tower restart and on a freshly spawned one. - Fix the cause the capture shows, with a fixture from the scrubbed capture.
- Check the
busy:user-textholds tomainfrom 2026-11-17T09:34Z-09:36Z against the same capture approach, and say whether they were correct holds (a human typing) or false ones.
Acceptance
- After a Tower restart on Windows,
afx send architect "…"to an idle architect delivers. - A fixture reproduces the false
no-composer-markerand passes with the fix. - POSIX gate fixtures and the ConPTY replay suite stay green; no hold is converted into a force-inject.
Related: Spec 1313 (mailbox-first delivery), Spec 1658 M15 (ConPTY ghost cursor held mail), #1482, #1664.
Metadata
Metadata
Assignees
Labels
area/towerArea: Tower server / agent farm CLI
Activity
amrmelsayed commentedon Nov 17, 2026
On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).
[PIR #1920] Plan draft
[PIR #1920] Give every Tower-launched PTY child TERM=xterm-256color
[PIR #1920] Claude gate profile accepts claude's ASCII-fallback '>' m…
[PIR #1920] Recorder --bare-env and ASCII-marker ConPTY captures
[PIR #1920] Lesson: a recorder that adds env production lacks records…
[PIR #1920] Thread: implement status and Tower-stop incident
[PIR #1920] Plan draft
[PIR #1920] Give every Tower-launched PTY child TERM=xterm-256color
[PIR #1920] Claude gate profile accepts claude's ASCII-fallback '>' m…
[PIR #1920] Recorder --bare-env and ASCII-marker ConPTY captures
[PIR #1920] Lesson: a recorder that adds env production lacks records…
[PIR #1920] Thread: implement status and Tower-stop incident
[PIR #1920] arch.md: TERM at the PTY spawn chokepoint and claude's AS…
[PIR #1920] Review + retrospective
[PIR #1920] Consultation minors: escape NBSP in test, document marker…
[PIR #1920] Review: name the flaky Windows Phase 4(b) test
Merge pull request #1928 from cluesmith/builder/pir-1920
release notes: backfill Windows follow-ups, test-suite Tower guard, C…