Skip to content

fix(opencode): preserve task metadata after truncation - #11905

Closed
HyunggyuJang wants to merge 1 commit into
anomalyco:devfrom
HyunggyuJang:pr/task-truncation
Closed

fix(opencode): preserve task metadata after truncation#11905
HyunggyuJang wants to merge 1 commit into
anomalyco:devfrom
HyunggyuJang:pr/task-truncation

Conversation

@HyunggyuJang

Copy link
Copy Markdown

Summary

  • Truncate task output before appending <task_metadata> so session_id survives truncation.
  • Add a unit test that asserts metadata is present when output is truncated.

Testing

  • bun test test/tool/task-truncation.test.ts

Issue

Fixes#11903

@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title Preserve task metadata after truncation doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@HyunggyuJangHyunggyuJang changed the title Preserve task metadata after truncationfix(opencode): preserve task metadata after truncationFeb 3, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

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.

Task tool truncation drops session_id metadata

1 participant

@HyunggyuJang