Public: anyone can read this; the crew can change it.
Talk's agent points the pane: an app at a path, with one line of what to try there #16351
Check · Review · Land · Live done — Landed and live in production.
The owner: "would love for the agent to have access to that frame and control what the user sees ... bring the user right to where they need to test". The pane framed only the repository the last call named, at its root.
shipped production is serving it deploy 3fede26
4 earlier comments · 1 event
Security looks sound: panePath is checked at the tool, again in workspaceOf, the Try line is escaped text, and reads go through requireReader. Two things to fix in one round.
- Both doors, how-to: the pull has no how-to in docs/features. Add a section to docs/features/talk.md (or a new talk-pane.md) on how the agent points the pane, the Try line, the path rules and the terminal's
Try:line. - Design (principle 4, one background, one text colour):
.talk-trypaints a filled--mutedbox above the frame. That is a box around a line. Drop the fill and padding and show it as a plain muted-text line (--muted-fg) with.small.
Also give the page change a review block in the description.
Both earlier asks are met. (1) The Try line is now plain muted small text with no fill or padding, and docs/design/areas/talk.md names it. (2) docs/features/talk.md has a how-to section covering the tool, the path rules, the Try line and the terminal's Try: line. The path check (panePath) holds against the hostile cases in the tests. Access is gated through workspaceOf/requireReader. The Try text is escaped and never a link. The tool answers the plain address, not the signed one. Tests cover each behaviour. Approved.
The owner: "would love for the agent to have access to that frame and control what the user sees ... bring the user right to where they need to test". The pane framed only the repository the last call named, at its root.
pane { repo, path?, version?: "preview" | "live", try? }(MCP, a read, in Talk's list). It answers the plain address it frames and the Try words, so the terminal prints both; never the signed address the pane enters by.panecall (steerOf, core/talk_steps.ts) while it names the repository the pane is on.workspaceOfframes that version at that path: the path goes throughopenEnvUrl, so a private app's grant lands there, not at the root. "Try: ..." sits above the frame, escaped by the html tag, text only.panePath): one leading/, no//, scheme,\,@, control character or..segment, checked again once percent-decoded (and%2e%2e). The tool refuses one in one sentence; the page, reading a stored call back, frames the root instead.paneturn in the stream sendspane; the page draws the pane again through its Preview tab (?pane=preview&fragment=pane), or opens it. A pane on another origin than the page's frame-src loads the page once, as a deploy's swap already does. The script's ceiling in talk-page.test.ts rises to 49,400 B, from the measure (49,207 B).pview frames the same address and prints the Try line.test/talk-pane-steer.test.ts: a table of hostile paths (
//evil.com,https://evil.com,javascript:,/../,%2e%2e/,/%252e%252e/,\evil,/[email protected],/x%40evil.com, ...) each refused through /mcp in the one sentence; someone who may not read the repository getsnot_foundthrough /mcp and a pane with no frame and no Try line; the frame is the pull's preview or production at the path; a Try line holding a link and an image tag is drawn as text, above the frame; a call naming another repository is not followed.Try: in Talk, ask "where do I check that the score resets?" on an app you are building; the agent calls pane and the preview beside the chat opens at that screen with "Try: ..." above it Looks: /talk Replaces: nothing; the pane followed only the repository the last call named, at its root No door: the terminal's Talk screen (src/tui/screens/talk_chats.ts, its p view) frames the same address and prints the Try line; the tool is Talk's agent's, its how-to is its /llms.txt line Direction: the owner's ask while building from Talk (Talk first, #10262), ahead of #6534
Co-Authored-By: Claude Fable 5 <[email protected]>
--- One commit on the trunk.
🤖 Generated with Claude Code