Repository navigation
Fix what reviewing the merged work found - #30
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A review loop over #27, #28 and #29 after they merged, with independent checks on the fixes, and two older problems the review surfaced.
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.Pathnow reportsexec'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./xand for..in a symlinked directory..on PATH said "not found on PATH"; it now says it was found and refused.Checked:
make racepasses; 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.