v0.176.0
What's new
- Open in Zed / VS Code / Cursor links on file-tool results, including the desktop app (#3596). Paths in
read_file,search_files,find_files,write_fileandedit_fileresults are now links that open the file in your editor. Asearch_fileshit opens at its line, and aread_fileopens at the line it read from. Pick the editor under Settings ▸ This console ▸ Chat ▸ Open files in: Zed (the default), VS Code, Cursor, or Off for plain text. The setting is saved per browser, because the editor belongs to your machine, not the agent.- Links only work when the console and the agent share a filesystem, as in the desktop app or a local server. A remote agent's paths won't exist on your machine.
- Links are built from a new read-only
GET /api/fs/roots, which uses the same project fence as the filesystem tools. A link can't point outside a managed project.
open_in_editoragent tool (filesystem.editor_command) (#3597). Setfilesystem.editor_commandto your editor's command line (zed,code -g,cursor -g) and an agent on your own machine can open a file for you, jumping to a line if one is given ("open the router for me"). It resolves paths through the same fence as every filesystem tool, works in read-only projects, launches the editor without waiting on it, and opens files only, not directories. Leave the setting empty (the default) and the tool is not offered. Don't set it on a headless or remote agent.- Windows: point
editor_commandat the editor's real.exe, quoted if the path has spaces, e.g."C:\Users\<you>\AppData\Local\Programs\Microsoft VS Code\Code.exe" -g. A.cmd/.batlauncher is refused. VS Code'scodecommand iscode.cmd, and Windows runs batch launchers throughcmd.exe, which would interpret characters in file names.
- Windows: point
Desktop
- The desktop app passes editor links to your OS under a strict allowlist. Only
zed://file/…,vscode://file/…andcursor://file/…links pass, and only when they point at an existing file on a local disk. Other link schemes, directories,.code-workspacefiles, paths containing.., and Windows network (UNC) paths are refused.
What's Changed
- feat(fs): config-gated open_in_editor tool (filesystem.editor_command) by @mabry1985 in #3597
- feat(console): open fs tool paths in Zed / VS Code / Cursor by @mabry1985 in #3596
Full Changelog: v0.175.0...v0.176.0