Skip to content

Fix what reviewing the merged work found - #30

Merged
tdwd merged 3 commits into
mainfrom
review-fixes
Nov 17, 2026
Merged

tdwd merged 3 commits into
mainfrom
review-fixes

Conversation

@tdwd

@tdwd tdwd commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

A review loop over #27, #28 and #29 after they merged, with independent checks on the fixes, and two older problems the review surfaced.

  • Name the binary a session started, and the claude behind it #29 binary naming: the time limit leaked for wrapper claudes; a relative agent path named a different file from the one that ran; failures said only "exit status 1"; identical notices from two starts could swap answers. All fixed. Runner.Path now reports exec's own resolution instead of a second lookup. A first attempt that joined paths as text was reverted after a check showed it ran the wrong program for ./x and for .. in a symlinked directory.
  • Start refuses a command path that is missing or a directory with that reason, instead of fork's "permission denied".
  • Fault line: it stayed for the whole run and hid every later notice. A key Deck handles itself now acknowledges it; a key sent to an attached agent does not.
  • Relative PATH entry: a command found only through . on PATH said "not found on PATH"; it now says it was found and refused.
  • Hand a claude session its mail through the hooks it already calls #27 / Reorder sessions by key or by dragging them #28: wording only.

Checked: make race passes; each guard was removed in turn and a test went red; a timing test that failed about one run in five passed ten runs of ten.

tdwd added 3 commits November 17, 2026 10:47
The binary naming from #29 had real defects:
- its time limit leaked when claude was a wrapper whose child kept the
  output pipe open; WaitDelay now ends the wait;
- a relative agent path named and versioned a file in Deck's own
  directory, not the one that ran. Runner.Path now records exec's own
  answer and the version check runs in the session's directory;
- a failure said only "exit status 1"; it now carries the first line
  claude wrote to stderr, control bytes removed, and a timeout says so;
- two starts in one directory set identical notices, so one start's
  answer could complete the other's; starts are now counted.

Start also refuses a command path that is missing or a directory with
that reason, checking the path as the kernel resolves it, where exec
reported a directory as "permission denied".

The rest is wording: claims in #27 and #29 narrowed to what the code and
Claude Code's hook docs say, and long lines reflowed.
A fault stayed in the footer for the rest of the run, so after any
failure every later notice was hidden, including a start notice saying
claude was not found. A fault now stays until the next key Deck handles
itself, which was pressed with the footer in view. A key sent to an
attached agent leaves it, because whoever typed it was typing to the
agent. The key's own fault or notice is the one shown next.
exec refuses a file found only through a relative PATH entry such as
".", and Deck reported that as "not found on PATH", though the file was
found. LookupReason now names the relative entry, for both the agent's
own start and the claude the footer looks up for cathode.
@tdwd
tdwd merged commit 95b4bcc into main Nov 17, 2026
3 checks passed
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