Skip to content

fix(core): return content-only Code Mode results - #41954

Merged
rekram1-node merged 1 commit into
v2from
codemode-content
Aug 12, 2026
Merged

fix(core): return content-only Code Mode results#41954
rekram1-node merged 1 commit into
v2from
codemode-content

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • promote text content into the Code Mode return value when a tool has no declared structured output
  • keep declared structured outputs unchanged and continue collecting file content separately
  • cover content-only Promise plugin and MCP tool execution through Code Mode

Fixes#41949

Testing

  • bun test test/plugin/promise.test.ts test/mcp.test.ts
  • bun typecheck
  • bun x prettier --check packages/core/src/codemode/tool.ts packages/core/test/plugin/promise.test.ts packages/core/test/mcp.test.ts

Requested by: @rekram1-node (Aiden Cline via Slack)

@rekram1-node
rekram1-node merged commit 1da591b into v2Aug 12, 2026
9 of 10 checks passed
@rekram1-node
rekram1-node deleted the codemode-content branch August 12, 2026 14:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rekram1-node