Skip to content

fix(hub): give every agent a read_file for trimmed results - #191

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-12156-let-every-agent-recover-a-trimmed-result-with-a-tool-it-has
Nov 5, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-12156-let-every-agent-recover-a-trimmed-result-with-a-tool-it-has

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Trimmed history and Interchange's size cap both tell an agent to read_file a tool-output:/// URI, but the coordinator, presenter, reviewer and writers had no read_file. A new savedResultTools (apps/hub/src/workflows/saved-result-tools.ts) wraps Interchange's posix read_file with the storage blob reader and accepts only tool-output:// URIs, so agents without a workspace gain no file access. Each of those entries gets it, and the coder sidecar uses it for its own tool-output:// reads in place of an inline reader. A URI with a dropped slash is repaired, because the URI parser reads the call id as a host.

Fixes CL-12156.

Verification

A real hub, sidecar, coordinator package, history trimming and tool grants. The model was a scripted OpenAI-compatible server that read a skill, then called read_file with the URI from the trimming note.

Run read_file offered Result
main no No matching grants for tool:read_file/invoke
this change yes full saved result (27 of 27 lines)
this change, slash dropped yes full saved result

Only the coordinator ran live; packaged.test.ts checks that every entry offers read_file. The size-cap path was not run live. bun run lint, format:check, typecheck, test (291 pass), pins:verify and vendor:verify pass.

@linear-code

linear-code Bot commented Nov 5, 2026

Copy link
Copy Markdown

CL-12156

@corbits-triage

corbits-triage Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

@TheGreatAxios
TheGreatAxios marked this pull request as draft November 5, 2026 02:38
A trimmed result's note, and the size cap's, tell the agent to
read_file a tool-output URI, but the coordinator, writer, reviewer and
presenter had no read_file, so they could not get a trimmed document
read back. They now get a read_file of the agent's saved results that
reads only tool-output URIs, so it opens no files, and the coder and
designer now share this same reader.
@TheGreatAxios
TheGreatAxios force-pushed the cl-12156-let-every-agent-recover-a-trimmed-result-with-a-tool-it-has branch from a3cbdb7 to 36001af Compare November 5, 2026 03:09
@TheGreatAxios
TheGreatAxios marked this pull request as ready for review November 5, 2026 03:11

@corbits-triage corbits-triage Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No defects reported.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 88eff40 Nov 5, 2026
9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-12156-let-every-agent-recover-a-trimmed-result-with-a-tool-it-has branch November 5, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant