From ff8c8b158efa20226ad7e661470c92d6c19f0ae6 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 21 Oct 2026 22:07:33 -0700 Subject: [PATCH] Describe exposed previews as opening in the task Page view --- internal/agents/preview.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/agents/preview.go b/internal/agents/preview.go index 8b810ba..80f5184 100644 --- a/internal/agents/preview.go +++ b/internal/agents/preview.go @@ -30,7 +30,7 @@ type exposePortArgs struct { func (m *Manager) exposePortTool(l *live) mcp.Tool { return mcp.Tool{ Name: "expose_port", - Description: "Show the human a server you are running, such as a dev server, as a link above the task's tabs that opens it in a new window. " + + Description: "Show the human a server you are running, such as a dev server, as a link above the task's tabs that opens it in the task's Page view beside its transcript. " + "Start the server yourself first (in the background), listening on 127.0.0.1 (not 0.0.0.0 or localhost) on any free port. " + "byre then serves it on the same port of byre's tailnet node, and the human's app opens it through a local link. " + "name labels it in the tab (\"web\", \"storybook\"); exposing a name or port again replaces the earlier one. " + @@ -98,7 +98,7 @@ func (m *Manager) exposePort(ctx context.Context, l *live, raw json.RawMessage) m.stopPreview(port) } - return fmt.Sprintf("Exposed %q: port %d of byre's tailnet node proxies to %s, and the human sees a link to it above the task's tabs.", name, args.Port, addr), nil + return fmt.Sprintf("Exposed %q: port %d of byre's tailnet node proxies to %s, and the human sees a link above the task's tabs that opens it in the Page view beside its transcript.", name, args.Port, addr), nil } func (m *Manager) servePreview(port int) error {