J301: plain exit reports code 127 and the window does not close #393
Open
opened 2026-11-06 12:19:29 +00:00 by kayg
·
9 comments
No Branch/Tag specified
main
j470b-server-mesh-rejoin
mesh-compat-382
j444b-d381-key-wins-flood
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#393
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owner report (production,
74b9c4d80, 2026-11-06):Windows involved:
ssh · shell(root bash on the server's own host) andcode.vpn.kayg.…(rootless hostcode, fish/starship-looking prompt). Not known which one, so both are covered.Job J301. Scope:
exit(root bash, and a rootless fish/zsh login), fix the cause, no masking.Branch
fix-shell-exitfrom origin/dev. Plan: reproduce on compute01 (root clone in /root, rootless as claude), trace, failing tests first, fix,verify quick+ affected browser specs with one worker,verify fast. Estimate ~3 h.Start: branch
fix-shell-exitfrom origin/dev5f529c3c8.Finding 1: the agent reports the shell's real status; a plain
exitgives 0Reproduced on the real binary (production build
74b9c4d80copied fromcode, and a current dev build) through the real infraternal agent (terminal.open, then typing into the PTY, readingterminal.exited):exitinfraternal-login-…-0)exitexitexitas the first commandexitexitwith no argument returns the last command's status (POSIX). So a Ctrl-C at the prompt, or a mistyped command (127), makes the next plainexitnon-zero. That is the shell's own status, and it isn't masked.Finding 2: what production recorded
I read production's
terminal_sessionstable read-only (mode=ro). Nothing was written. Today's exits, all within the owner's report window:No session recorded 127 today. The two windows that stayed open both ended with 130, which is 128 + SIGINT: the shell's last command had been interrupted by Ctrl-C before
exit. A 0 exit (3fd18a47) took the existing close-on-0 path (views/body.tsshouldCloseWindowAfterExit). Our client never sends ETX by itself: no\x03is generated anywhere inapps/tracer/srcorpackages.So, as far as the evidence shows: "127" was most likely 130 misread. In both windows the status was the shell's real one, and the window stayed open because it was non-zero.
Finding 3 (separate production bug, not fixed here): person logins on
sshcannot startOn ssh.kayg.org (AlmaLinux 10.2, SELinux Enforcing), every login unit for kayg (uid 1001) fails:
The login copy is labelled
system_u:object_r:var_t:s0, and SELinux refuses to exec it for theUser=kaygPAM login. So kayg cannot open a shell as kayg on that host. Flagged for the orchestrator.D178 vs the owner's expectation
D178: "exited (final screen and exit code kept with "Run again" until dismissed or 7 days)".
#189already closes the window when a shell exits with 0 (shouldCloseWindowAfterExit). The owner expects a typedexitto close the window. I'm implementing the brief's split: 0 closes the window with no toast, and non-zero keeps the ended state. For the owner: with that split, the owner's own case (Ctrl-C, thenexit→ 130) still keeps the window. Should a typedexitclose the window whatever its status, the way a terminal tab closes?Progress: head
5d73d65d0onfix-shell-exit, rebased on origin/dev48358a5fa.bb6e55023tracer: a clean shell exit is not an error toast.CLEAN_EXIT_STATUSis shared by the terminal and the status relay, and the relay never shows it. A status-0 exit already closed the window (#189).5d73d65d0test(real):settled()waits up to 30 s for no visible "Not saved" notice. At load 13 the 5 s default failed the new spec's sign-up.Red/green, real server + real agent + real PTY,
real/shell-exit.spec.ts, one worker (--workers=1):a plain exit closes the window and shows no errorfailed. The window closed, but the toasts were["Shell exited."](logcompute01:~claude/j301/run2.log).~claude/j301/run4.log)./root/j301/root-run2.log).verify quick: all rows PASS (~claude/j301/quick3.log).verify fastis running now.Finish: head
5d73d65d0onfix-shell-exit(based on origin/dev48358a5fa). Not merged, not deployed.Commits:
bb6e55023tracer: a clean shell exit is not an error toast (#393)5d73d65d0test(real): sign-up settles when the "Not saved" notice is gone, within 30 s (#393)Gate:
scripts/verify faston compute01 at5d73d65d0(~claude/j301/fast.log)The privileged integration row:
SKIP (no change to install, proxy, mesh or shim code, or a crate they depend on). Static x86_64: 27,777,072 bytes. Static aarch64: 24,994,464 bytes. The change is TypeScript only, so no Rust code changed.verify quick: every row PASS, including tracer typecheck (~claude/j301/quick3.log).Browser:
real/shell-exit.spec.ts, one worker, production tracer build + production binary74b9c4d80+ real agent + real PTY["Shell exited."](~claude/j301/run2.log).2 passed (21.7s)(~claude/j301/run4.log).2 passed (15.0s)(/root/j301/root-run2.log).Screenshots, root and rootless, attached below: a plain
exitleaves no window and no toast, andexit 3keeps the window with "Session ended · Exit 3" and New shell.For the owner / orchestrator
exit, in both bash and zsh. Proof oncodewith kayg's real zsh config:exitalone gives 0, and Ctrl-C thenexitgives 130. The code is not masked.exit→ 130) still keeps its window. Should a shell the person ended themselves (typedexitor Ctrl-D) close its window whatever its status, the way a terminal tab does? That changes how D178's exited state applies. Recommendation: yes, close on any exit that follows the person's ownexit/EOF, and keep the ended strip only for shells that die by themselves. But the client can't tell the two apart from the status alone, so this needs a design decision./var/cache/infraternal-login-bin. The copy's SELinux label isvar_t, and the result is 203/EXEC (9 times in 6 h), so kayg cannot open a shell as kayg on that host. Needs its own issue.Round 2 (D357) finished: head
279b57c3aonfix-shell-exit, based on origin/dev37c93637e. Not merged, not deployed. Production was not touched.Commits:
42bcb057atracer: a clean shell exit is not an error toast (round 1)ec72b7ee4test(real): sign-up waits up to 30 s for the "Not saved" notice, until #395. Temporary. The code comment and the commit message point at #395 (J305) and say what to restore (plaintoBeHidden()). I kept it because without it the spec's sign-up failed in 2 of 4 runs on compute01: that is the #395 bug, not this change. Plan: remove it when #395 merges.279b57c3atracer: a terminal window closes whenever its shell exits normally (D357)Normal exit vs killed: the agent already reports the two separately. The shim (
session.rs) and the login worker (login.rs) sendstatus.code()for WIFEXITED (0..255) and-status.signal()for WIFSIGNALED.terminal.exitedpasses that through unchanged. So the client rule isstatus >= 0→ close the window with no toast, and< 0→ keep the window and the ended strip, with an error toast "Shell was stopped by signal N". No protocol change. A host or infraternal agent that goes away sends no exit, so it keeps the existing session-gone state.Test-first,
real/shell-exit.spec.ts, one worker, production binary + real agent + real PTY (rootless):~claude/j301/red.log): Ctrl-C thenexitfailed (window stayed),exit 3failed (window stayed), plainexitpassed, SIGKILL passed. Unit tests: 2 failed.~claude/j301/green.log):Unit tests:
10 pass, 0 fail. In the Ctrl-C case, an EXIT trap in the shell printedexit-status-130, so it really was 130.verify quick(~claude/j301/quick-r2.log), QUICK_EXIT=0:Two findings for the orchestrator (not fixed: outside this change)
r2-killed.png). This already happened before this change, for every gone session including round 1'sexit 3shot. The spec asserts the window and strip, not the screen.session-ui.on-demand.tsstripOf, worth doing with point 1.Round 3 (D357 gaps) finished: head
8f4129cb8onfix-shell-exit. Not merged, not deployed.New commit
8f4129cb8: tracer: an ended window keeps its final screen and says what stopped it.sessions.csshid.terminal-hostfor everydata-result="ended"strip (#158 assumed an ended window had no screen). Ended windows now keep the terminal visible with its cursor layer hidden, and the strip sits at the bottom, clear of the text. Refused and can't-reach windows still hide their terminal, since a stale picture there would look live.ended-text.tsholds the wording: "Stopped by signal N" for a negative status, "Session ended" for no status (host or infraternal agent gone), and "Session ended · Exit N" for an ended session that still carries a normal code.ended-strip.spec.tscaught it). For an "ended" strip, the dead terminal's input no longer blocks Enter.test/dead-session.spec.tsused to expect the terminal hidden for an ended session. It now expects it visible with its cursor hidden.Test-first:
~claude/j301/g4.log):Error: the final screen is visible, not hidden behind the ended state — Expected: true, Received: false. The wording check had failed earlier (red3.log): received "Session ended · Exit -9".Green:
real/shell-exit.spec.ts, one worker, rootless (~claude/j301/g5.log): 4 passed (57.5s).real/shell-exit.spec.ts, one worker, as root (throwaway copy under /root, root-slot-hold,/root/j301/root-run3.log): 4 passed (52.2s).dead-session+ended-strip, one worker (~claude/j301/mock6.full.log): 11 passed.terminal-states, run before the Enter fix (g4.log): all refused and unreachable cases passed at the four sizes and both themes.verify quickat8f4129cb8(~claude/j301/quick-r5.log):Screenshots of the killed state, attached below: 1440×900 and 393×852, in ink and paper, from the production build on a real PTY (rootless run). The final output stays readable with no cursor, and the strip says "Stopped by signal 9 · New shell · ×".
Still open: the temporary 30 s "Not saved" wait in
layout-devices.ts. It goes when #395 merges.J327 review of
fix-shell-exit@8f4129cb8: REQUEST CHANGESOne blocker: on a full screen the ended strip covers the last lines of output. Everything else I checked passes.
Blocker: the strip covers the last output lines (all sizes, ink and paper)
Your own check was "the strip sits at the bottom, clear of the text". That holds only when the output is short. Case I added: a screen full of output, last prompt on the bottom row, then
kill -9the shell. This is the normal state of a shell that has been used.top824 / 776 / 591) sits on rows 17–18 of the terminal (bottom881 / 833 / 648).shell-pid-…and the final prompt (claude@…) are hidden behind the strip. OnlyLAST-OUTPUT-LINE-2is clear.Suggested direction (your call, no redesign needed): reserve the strip's height under the dead terminal. For example, scroll the frozen viewport up by the strip's height, or end the terminal above the strip, the way
.cl-previewalready getspadding-bottom: 4.5rem. Then add a geometry check with a full screen: the strip's top must be at or below the bottom of the last drawn text row. A pixel check for ink under the strip's box would also do. Please also add the full-screen case to the screenshots.Passed
~claude/j327/real-shell.log, branch head built fresh to~claude/j327/dist):real/shell-exit.spec.ts4 passed, one worker. Unit tests (ended-text, status, body): 13 pass./root/j327/root-run.log):real/shell-exit.spec.ts4 passed, one worker.exit(status 130) and plainexitclose the window with no toast, rootless and as root. Ctrl-D:Control+Dat an empty prompt closes the window with no toast. I added a temporary spec,real/j327-ctrld.spec.ts, not committed. It passed as root (/root/j327/root-run.log). I did not run Ctrl-D rootless; it takes the same exit-0 path asexit.~claude/j327/mock-states.log):dead-session,ended-stripandterminal-states41 passed, one worker, no failures. They cover the refused and can't-reach windows at 1440×900, 393×852 and 375×667 in ink and paper, the dead-session mock, and Enter starting a new shell on an ended window..terminal-cursor-layerisvisibility:hiddenin every shot), text readable, strip reads "Stopped by signal 9 · New shell · ×". Host-gone (no status): strip reads "Session ended · New shell · ×", terminal visible without a cursor. Both fine at the three sizes and two themes (screenshots attached; geometry lines are in~/j327/real-shots.logandmock-gone.log). The strip is centred at the bottom on desktop and spans the width on phones, with the same inset in both themes.apps/tracer/real/layout-devices.tssettled()has a comment saying "TEMPORARY until #395 (J305) lands", why, and what to restore ("go back to a plaintoBeHidden()with the default timeout"). That is clearly marked. Note: D358 now exists for #395, so the comment can say that once #395 merges. Not a blocker.Notes
74b9c4d80(as J301 did) with a tracerdistbuilt from the branch head. This is a TypeScript-only change, so the Rust binary is not what is under test.verify fastorverify quick(reviewer rule). Evidence artifacts are on compute01 under~claude/j327/and/root/j327/.J327 review of
fix-shell-exit@8f4129cb8: REQUEST CHANGESOne blocker: on a full screen the ended strip covers the last lines of output. Everything else I checked passes.
Blocker: the strip covers the last output lines (all sizes, ink and paper)
Your own check was "the strip sits at the bottom, clear of the text". That holds only when the output is short. Case I added: a screen full of output, last prompt on the bottom row, then
kill -9the shell. This is the normal state of a shell that has been used.top824 / 776 / 591) sits on rows 17–18 of the terminal (bottom881 / 833 / 648).shell-pid-…and the final prompt (claude@…) are hidden behind the strip. OnlyLAST-OUTPUT-LINE-2is clear.Suggested direction (your call, no redesign needed): reserve the strip's height under the dead terminal. For example, scroll the frozen viewport up by the strip's height, or end the terminal above the strip, the way
.cl-previewalready getspadding-bottom: 4.5rem. Then add a geometry check with a full screen: the strip's top must be at or below the bottom of the last drawn text row. A pixel check for ink under the strip's box would also do. Please also add the full-screen case to the screenshots.Passed
~claude/j327/real-shell.log, branch head built fresh to~claude/j327/dist):real/shell-exit.spec.ts4 passed, one worker. Unit tests (ended-text, status, body): 13 pass./root/j327/root-run.log):real/shell-exit.spec.ts4 passed, one worker.exit(status 130) and plainexitclose the window with no toast, rootless and as root. Ctrl-D:Control+Dat an empty prompt closes the window with no toast. I added a temporary spec,real/j327-ctrld.spec.ts, not committed. It passed as root (/root/j327/root-run.log). I did not run Ctrl-D rootless; it takes the same exit-0 path asexit.~claude/j327/mock-states.log):dead-session,ended-stripandterminal-states41 passed, one worker, no failures. They cover the refused and can't-reach windows at 1440×900, 393×852 and 375×667 in ink and paper, the dead-session mock, and Enter starting a new shell on an ended window..terminal-cursor-layerisvisibility:hiddenin every shot), text readable, strip reads "Stopped by signal 9 · New shell · ×". Host-gone (no status): strip reads "Session ended · New shell · ×", terminal visible without a cursor. Both fine at the three sizes and two themes (screenshots attached; geometry lines are in~/j327/real-shots.logandmock-gone.log). The strip is centred at the bottom on desktop and spans the width on phones, with the same inset in both themes.apps/tracer/real/layout-devices.tssettled()has a comment saying "TEMPORARY until #395 (J305) lands", why, and what to restore ("go back to a plaintoBeHidden()with the default timeout"). That is clearly marked. Note: D358 now exists for #395, so the comment can say that once #395 merges. Not a blocker.Notes
74b9c4d80(as J301 did) with a tracerdistbuilt from the branch head. This is a TypeScript-only change, so the Rust binary is not what is under test.verify fastorverify quick(reviewer rule). Evidence artifacts are on compute01 under~claude/j327/and/root/j327/.Progress on J327's blocker (comment 83029): head
735facb5cis pushed, a fix plus a full-screen geometry test written first. Red/green numbers and the screenshots go in the final comment. The only thing still running is a three-times repeat of theexit 3case, which failed once in the green run (a timeout waiting for the window to close). Its queue position is 25 on compute01.Round 4 (J327 blocker, comment 83029) finished: head
735facb5confix-shell-exit. Not merged, not deployed.Fix (
735facb5c, one CSS rule inapps/tracer/sessions.css): while an "ended" strip is shown and not leaving, the terminal stops where the strip begins (bottom: calc(var(--pill-h, 2.375rem) + 0.875rem)), so the strip has its own row. The terminal's existing ResizeObserver refits the grid to the shorter box, and that refit keeps the cursor row, the final prompt, in view. Nothing new runs. New shell removes the strip, and the terminal gets its full height back. Everything else is unchanged.Test, written first:
real/shell-exit.spec.ts› "on a full screen the ended strip never covers the last output or the final prompt". It prints 120 lines plus the PID, so the prompt is on the bottom row, then sends SIGKILL. Then at 1440×900, 393×852 and 375×667, in ink and paper:the lowest drawn text row must end inside the terminal's box;
the strip's top must be at or below that row.
Red on the
8f4129cb8build (~claude/j301/red7.full.log):Green at
735facb5c, fresh production build, real server + real agent + real PTY, rootless, one worker (~claude/j301/g8-real.log): the full-screen test passed at all six size/theme combinations, along with Ctrl-C thenexit, plainexit, and the SIGKILL final-screen test.One failure in that run:
exit with a failing status closes the window tootimed out once waiting for the window to close (Expected: 0, Received: 1). This change only applies while an ended strip is shown, and that test never shows one. I reran it with--repeat-each=3, together with plainexit, at the same head and build (~claude/j301/g9-real.log): 6 passed. I'm recording it as an intermittent failure in the fixture, not something this commit introduced.Mock
dead-session+ended-strip, one worker (~claude/j301/g8-mock.log): 11 passed, including Enter for a new shell, the strip staying under the pointer, and the phone tap.Root: not rerun this round. The change is one CSS rule for the ended state, and J327's root run covered everything else.
verify quickat735facb5c(~claude/j301/quick-r8.log, QUICK_EXIT=0):Screenshots (attached below), killed shell on a full screen, at 1440×900, 393×852 and 375×667 in ink and paper. The last output line,
shell-pid-…and the finalclaude@…$prompt all sit above the strip, with nothing covered and no cursor.