Skip to content

fix(web): subagent transcript always shows the prompt it was spawned with - #238

Merged
badcuban merged 1 commit into
mainfrom
fix/subagent-transcript-shows-prompt
Sep 6, 2026
Merged

fix(web): subagent transcript always shows the prompt it was spawned with#238
badcuban merged 1 commit into
mainfrom
fix/subagent-transcript-shows-prompt

Conversation

@badcuban

@badcuban badcuban commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

The instruction block above a subagent's transcript (the prompt the main agent gave it, folded with a "Show all" toggle) only rendered when the loaded page began at the transcript's first record. The panel opens on the newest 60 records and a working agent's transcript runs into the hundreds, so the block almost never appeared. Separately, the server capped every transcript record at 4,000 characters while real spawn prompts run past 10,000, so even after paging back the prompt was cut mid-sentence.

Fix:

  • When the newest page starts past the first record, the panel reads that record once and uses it as the instruction. It is pinned above the "Load earlier" control so paging reads as earlier steps, not something before the prompt.
  • The objective fallback (Codex children have no leading message) shows regardless of which page is visible.
  • On the server, text sent to the agent (spawn prompt, follow-ups) keeps up to 32,000 characters. The agent's own output keeps the 4,000 cap.

Tests: new browser case for a mid-transcript first page, a logic test for the separately read lead, and a server test for the input-text cap. fmt, lint, typecheck, the Claude adapter suite, and the transcript and agents-panel browser suites pass.

…with

The instruction block above a subagent's transcript only rendered when the
loaded page began at the transcript's first record. The panel opens on the
newest 60 records and a working agent's transcript runs into the hundreds,
so the block almost never appeared. The server also capped every record at
4,000 characters, while real spawn prompts run past 10,000.

The panel now reads the first record once when the newest page starts past
it, pins the instruction above the "Load earlier" control, and shows the
objective fallback regardless of which page is visible. On the server, text
sent to the agent keeps up to 32,000 characters; the agent's own output
keeps the existing cap.
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Sep 6, 2026 6:47am UTC

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 6, 2026
@badcuban
badcuban enabled auto-merge September 6, 2026 06:52
@badcuban
badcuban added this pull request to the merge queue Sep 6, 2026
Merged via the queue into main with commit 7594b74 Sep 6, 2026
16 checks passed
@badcuban
badcuban deleted the fix/subagent-transcript-shows-prompt branch September 6, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant