Skip to content

fix(threads): show replies after shell commands on mobile - #336

Merged
nixuuu merged 1 commit into
devfrom
fix/shell-turns-display
Nov 7, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/shell-turns-display

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Shell commands on mobile displayed their result card and duration but skipped the agent's reply. The shell-specific guard in TimelineTurn skipped 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 text prop 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

  • Passed: bun install, bun run gen:check, bun run typecheck (including mobile), bun run lint, bun run format:check, and the web build.
  • Passed: mobile 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.
  • Passed full test/temp-cleanup gate: bun run check:tmp --timeout 30000 — 1727 passed, 161 skipped, 0 failed, exit 0, nothing left in the private temp directory. Used a worktree-local TMPDIR and GIT_CEILING_DIRECTORIES=$PWD/.tmp so 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.
  • Real browser against an isolated gateway, scripted worker and Postgres: light/dark at 1280×800 and 390×844; empty output, exit 128, short output and a six-line output; output expansion/collapse and visible answers; no removed disclosure or horizontal overflow.
  • Android verified through T3 device tools against the isolated gateway: fresh debug client built on Linux with private SDK/Gradle directories, SDK 37.0, arm64, two workers and a 2 GiB heap. Light/dark screenshots show the work header and agent reply; checked ls with no output, git status with exit 128, echo and 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)

  • “Full text the agent received” → removed from shell cards: eliminates the redundant raw harness-input disclosure. Existing “Show output” / “Hide output” remain verb-led, sentence-case actions.
  • Hidden mobile work/answer → existing “Worked for …” and agent answer: uses existing terms and adds no strings, errors, empty states, confirmations or “soul” copy. Status and exit codes remain textual cues.
  • Checked short, typical and long command/output text and a long thread title at desktop and phone widths in both themes. No new glossary terms or duplicated facts.

Fixes: #231

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
nixuuu marked this pull request as ready for review November 7, 2026 13:38
@nixuuu
nixuuu merged commit 7fd2528 into dev Nov 7, 2026
14 checks passed
@nixuuu
nixuuu deleted the fix/shell-turns-display branch November 7, 2026 13:40
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