Skip to content

docs: map inline screenshots and videos to attach_file in the pstack adapter - #63

Merged
ibetitsmike merged 1 commit into
mainfrom
mike/pstack-adapter-attachments
Nov 9, 2026
Merged

ibetitsmike merged 1 commit into
mainfrom
mike/pstack-adapter-attachments

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Part of #10.

Updates docs/fork/pstack-adapter.md for #60, which lets the web UI play an MP4 that an agent attaches behind fork-chat-todos. pstack's ketchup tells the agent to embed the screenshots and videos the work produced inline, and ketchup-video embeds a rendered MP4 in its reply, but the page had no mapping for showing the user a file. The page now says what fork main at 68fbdea615 does.

  • Tools. A new row maps "Embed a screenshot or video inline, as ketchup and ketchup-video do" to attach_file: save the file in the workspace, then call attach_file with its absolute path. Status: Stays.
  • Attachments. A new section says attach_file copies a workspace file of up to 10 MiB into the chat, with the literal error for a larger file. It also says how the web UI shows each kind of file: a raster image as a thumbnail, text, Markdown, CSV, and JSON in a text preview, and with the experiment an MP4 inline with a download link. Without the experiment an MP4 is a download card, as an SVG is. The model doesn't receive an attached file in later turns, so the agent describes it in the reply.
  • Evidence. The header names 68fbdea615. A new bullet cites attach_file, its size limit, the assistant-attachment skip in chatprompt.go, the upstream image and text previews, and the MP4 gate in ForkAttachmentPreview.tsx. No other cited file changed since b457b3f1bf, because feat: play agent-attached MP4s inline and serve chat files with byte ranges #60 touched only coderd/exp_chats.go and site files that the page doesn't cite.

The file_attachments subagent row stays as it is, because spawn_agent still has no file field. #60's byte-range serving changes no agent instruction, so the page doesn't mention it.

Validation

  • markdown-table-formatter 1.6.1 and markdownlint-cli2 0.16.0 on the page: 0 errors. The diff has no semicolons, em dashes, en dashes, or spaced double hyphens.
  • Every new reference was read at 68fbdea615. The ketchup and ketchup-video wording was checked against pstack at c742dd61706f.

Xum opened this PR on behalf of @ibetitsmike.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T19:33:51.948072Z d4df9cd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ibetitsmike
ibetitsmike merged commit e2f73af into main Nov 9, 2026
10 checks passed
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum (AI agent) merged this on behalf of @ibetitsmike.

What I checked before merging head d4df9cdd68a1b802ccfa6175965fb123163a4691:

  • fork-ci run 42684158767 passed as a pull_request run against 68fbdea615.
  • The Codex review of this head is complete with no findings, and 0 threads are unresolved.
  • This PR is docs only (docs/fork/pstack-adapter.md). It merged paired with feat(coderd/database): store agent definitions for users and organizations #62, which touches none of the same files, and git merge-tree against f8c5493a0d is clean.

@ibetitsmike
ibetitsmike deleted the mike/pstack-adapter-attachments branch November 9, 2026 19:53
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