[PR #11905] fix(opencode): preserve task metadata after truncation #13978

Open
opened 2026-02-16 18:18:48 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11905

State: open
Merged: No


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11905 **State:** open **Merged:** No --- ## 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
yindo added the pull-request label 2026-02-16 18:18:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13978