Repository navigation
fix(threads): show replies after shell commands on mobile - #336
Merged
Merged
Conversation
Render shell turn work and answers through the normal mobile segments. Remove the redundant full-input disclosure from web shell cards while preserving output expansion and agent input. Fixes: #231
nixuuu
marked this pull request as ready for review
November 7, 2026 13:38
This was referenced Nov 13, 2026
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.
Shell commands on mobile displayed their result card and duration but skipped the agent's reply. The shell-specific guard in
TimelineTurnskipped the entire segment renderer, including its work header and answer. This behavior originated in #231; the shared answer/fold selection was already correct.Render shell turns through the normal segments after their input card. Completed work with no rows keeps its noninteractive “Worked for …” header, and the answer stays outside the fold. Turns with tools, live answers and interrupted/failed turns retain the existing shared fold rules; bot chats and exchanges use their separate chat layout.
Remove the web shell card's “Full text the agent received” disclosure and its unused
textprop at all three call sites. Mobile had no equivalent disclosure. “Show output” / “Hide output” and the input actually delivered to the agent are unchanged. Update the related UI/mobile documentation.Verification
bun install,bun run gen:check,bun run typecheck(including mobile),bun run lint,bun run format:check, and the web build.bunx expo lint, Expo Doctor (20/20), Android prebuild, and Android/iOS bundle exports. Existing work-fold tests: 8 passed, 56 assertions, covering final answers, tools, unphased streaming, manual fold state, steers and interrupted segments. No UI tests added.bun run check:tmp --timeout 30000— 1727 passed, 161 skipped, 0 failed, exit 0, nothing left in the private temp directory. Used a worktree-localTMPDIRandGIT_CEILING_DIRECTORIES=$PWD/.tmpso temporary non-repositories cannot inherit the enclosing checkout's Git origin. The 30-second default accommodates local harness fixtures that can take over 5 seconds under machine load; test assertions and explicit test deadlines are unchanged. GitHub CI also passed all four test shards, static checks and builds.lswith no output,git statuswith exit 128,echoand six-line output expansion/collapse. Empty completed work headers are plain text, with answers visible below. The scripted agent echoes its received input, so the displayed replies are deterministic fixture text. The scratch app was uninstalled and the emulator retained; servers and generated native output were cleaned up. iOS was unavailable because another session owned it.Copy audit (§8)
Fixes: #231