Skip to content

fix(core): align shell output limits - #41007

Merged
rekram1-node merged 1 commit into
v2from
shell-truncation-limits
Aug 7, 2026
Merged

fix(core): align shell output limits#41007
rekram1-node merged 1 commit into
v2from
shell-truncation-limits

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • cap shell model output at 2,000 lines or 50 KiB by default
  • honor tool_output.max_lines and tool_output.max_bytes
  • retain the tail and existing full-output file behavior

Testing

  • bun test test/tool-shell.test.ts
  • bun test test/tool-output.test.ts
  • bun typecheck

@rekram1-node
rekram1-node merged commit 2092350 into v2Aug 7, 2026
9 of 10 checks passed
@rekram1-node
rekram1-node deleted the shell-truncation-limits branch August 7, 2026 05:18
github-actionsBot pushed a commit to ReStranger/opencode that referenced this pull request Aug 7, 2026
* upstream/v2: (84 commits)
fix(core): align shell output limits (anomalyco#41007)
feat(core): bound tool output (anomalyco#40929)
refactor(app): remove legacy layout (anomalyco#40947)
refactor(core): simplify file tools to lexical paths (anomalyco#40962)
fix(core): default custom agents to primary (anomalyco#40880)
fix(core): migrate legacy small model (anomalyco#40966)
fix(tui): dismiss stale permission prompts (anomalyco#40960)
fix(tui): use tab layout setting (anomalyco#40952)
fix(tui): keep model selection session scoped (anomalyco#40913)
feat(ai): expose model compatibility options (anomalyco#40942)
feat(cli): add session import and export (anomalyco#40914)
fix(core): deduplicate websearch consent prompts (anomalyco#40869)
test(core): cover config precedence
feat(tui): enable cwd-scoped session tabs by default
feat(core): normalize mixed config formats (anomalyco#40919)
fix(tui): simplify MCP status rows (anomalyco#40916)
fix(tui): compact single-line prompts (anomalyco#40924)
fix(config): omit unset optional values (anomalyco#40918)
fix(tui): open authorization links (anomalyco#40912)
refactor(mcp): remove unused registration status (anomalyco#40904)
...
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rekram1-node