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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

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.

Notes

shipped production is serving it deploy 3fede26

opened this

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.
  • The pane follows the newest pane call (steerOf, core/talk_steps.ts) while it names the repository the pane is on. workspaceOf frames that version at that path: the path goes through openEnvUrl, so a private app's grant lands there, not at the root. "Try: ..." sits above the frame, escaped by the html tag, text only.
  • The path never leaves the app's own address (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.
  • Live: a fresh pane turn in the stream sends pane; 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).
  • The terminal's p view frames the same address and prints the Try line.
  • Talk's brief: after a change it asked the crew for has deployed, point the pane at the changed screen with one sentence of what to try.

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 gets not_found through /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

4 earlier comments · 1 event
commented

<!-- look-pages 26c46c99e87f --> Look pages for 26c46c9, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/pages/talk_preview.ts; a commit names /talk
commented

<!-- look-pages 1e817ac01073 --> Look pages for 1e817ac, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/pages/talk_preview.ts; a commit names /talk
Changes requested — before the latest push

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.

  1. 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.
  2. Design (principle 4, one background, one text colour): .talk-try paints a filled --muted box 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.

commented

Taken over by @trevato; stopped @sentinel.

commented

Steward note: new head 02909f26 answering the review: a how-to section in docs/features/talk.md (how the agent points the pane, the Try line, the path rules, the terminal's Try line); the Try line is plain muted small text with no fill or padding; and a review block in the commit body.

commented

<!-- look-pages 02909f26bb02 --> Look pages for 02909f2, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/pages/talk_preview.ts; a commit names /talk
Approved

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs