jh-block 3b24bb33cf fix(code-execution): preserve rich content through JS sandbox via token refs
When code mode wraps tools in a JS sandbox, non-text content (resources,
images, blobs) couldn't round-trip through the JSON return value. This fix:

1. Stores non-text content in a ContentStore keyed by unique tokens
2. Returns token references in the JSON payload to the JS runtime
3. After execution, collects referenced tokens and appends resolved content

This allows tools like Autovisualiser to return rich HTML visualizations
that survive the JS sandbox boundary. The model's return value stays intact
with token references, while the actual content is restored alongside.

Also removed stdout/stderr from the tool output channel—console.log is now
ignored and only return values are used, simplifying the interface.

Fixes #6167

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-26 20:51:13 +01:00
2026-03-17 06:35:27 +00:00
2026-03-07 17:16:19 +00:00
…
2026-03-17 06:35:27 +00:00

goose

a local, extensible, open source AI agent that automates engineering tasks

Discord CI

goose is your on-machine AI agent, capable of automating complex development tasks from start to finish. More than just code suggestions, goose can build entire projects from scratch, write and execute code, debug failures, orchestrate workflows, and interact with external APIs - autonomously.

Whether you're prototyping an idea, refining existing code, or managing intricate engineering pipelines, goose adapts to your workflow and executes tasks with precision.

Designed for maximum flexibility, goose works with any LLM and supports multi-model configuration to optimize performance and cost, seamlessly integrates with MCP servers, and is available as both a desktop app as well as CLI - making it the ultimate AI assistant for developers who want to move faster and focus on innovation.

Watch the video

Quick Links

Need Help?

a little goose humor 🪿

Why did the developer choose goose as their AI agent?

Because it always helps them "migrate" their code to production! 🚀

goose around with us

S
Description
No description provided
Readme Apache-2.0 1.5 GiB
Languages
Rust 63.6%
TypeScript 29.6%
JavaScript 1.7%
Shell 1.6%
Python 1.5%
Other 1.8%