Skip to content

feat(server): show a file without reading it into context - #131

Merged
nullStack65 merged 4 commits into
release/native-0.1.10from
t3/agent-file-display-no-read
Nov 20, 2026
Merged

nullStack65 merged 4 commits into
release/native-0.1.10from
t3/agent-file-display-no-read

Conversation

@nullStack65

@nullStack65 nullStack65 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

An agent had to read a file and paste it to put it on screen. show_file stats the path and returns only the path, byte size, and media type. The web client opens the existing file viewer from that result, so the file bytes stay out of the model context.

Opening the viewer is the existing panel state update. The viewer reads the file after paint.

Deploy: fleet

Model: grok-4.7
Harness: t3/codex

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nullStack65

Copy link
Copy Markdown
Owner Author
{"reviewed_head":"b63e16bc14225e5b926c4a67b2aa660593577e19","reviewer":"grok-4.7-build (claudeAgent, read-only)","findings":[{"id":"same-millisecond-show-file-never-opens","severity":"important","summary":"shownFilesToOpen opens a file only when its createdAt is strictly newer than the newest timestamp already painted. A tool row's createdAt is its startedAt and never changes on completion, so a show_file that starts in the same millisecond as anything already on screen completes with createdAt equal to the watermark and the viewer never opens.","outcome":"open"}]}

@nullStack65

Copy link
Copy Markdown
Owner Author
{"reviewed_head":"8d91345128c6a0b66b58e5a6955d4d8ae5f5f295","reviewer":"grok-4.7-build (claudeAgent, read-only)","findings":[]}

The first re-check of 8632398 found completion-stamp-loses-to-later-start: the watermark was still the newest timeline start time, so a slow show_file lost to a row that started later. 8d91345 makes the watermark the newest completion. The same reviewer checked out that commit and returned clean.

nullStack65 and others added 4 commits November 20, 2026 20:06
An agent had to read a file and paste it to put it on screen. show_file stats the path and returns only path, size, and type. The web client opens the existing file viewer from that result, so the file bytes stay out of the model context.

Model: grok-4.7
Task: CLO-898 show a file without reading it into context
Agent: magpie
Lane: magpie
Harness: t3/codex
Model-family: Grok
Model-generation: 4.7
Skills-SHA: 0540352af0d6f43bdeea39a8c4aad4660ab0ec55
Co-Authored-By: Grok 4.7 <noreply@x.ai>
History loading, an older page, and an expanded work group looked like new show_file results, so old files took the panel. A completion now opens only when it is newer than what is already on screen. show_file stays in the live window, Claude's read-only sandbox can call it, and the result is a showFile object so another tool's path and size cannot open the viewer.

Model: grok-4.7
Task: CLO-898 show a file without reading it into context
Agent: magpie
Lane: magpie
Harness: t3/codex
Model-family: Grok
Model-generation: 4.7
Skills-SHA: 0540352af0d6f43bdeea39a8c4aad4660ab0ec55
Co-Authored-By: Grok 4.7 <noreply@x.ai>
A tool row's createdAt is its startedAt and never moves when the tool
finishes, so a show_file that starts in the same millisecond as something
already painted completed with createdAt equal to the watermark and the
viewer never opened. The open check now uses the completion time.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The watermark was the newest timeline start time, so a show_file that
started before a later row never opened when it completed earlier than
that row's start. The watermark is now the newest completion.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@nullStack65
nullStack65 force-pushed the t3/agent-file-display-no-read branch from 8d91345 to cd35b71 Compare November 20, 2026 20:12
@nullStack65
nullStack65 merged commit 5e3e908 into release/native-0.1.10 Nov 20, 2026
3 checks passed
@nullStack65
nullStack65 deleted the t3/agent-file-display-no-read branch November 20, 2026 21:03
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