Skip to content

refactor: deduplicate session-state branch handling#171

Closed
LIU9293 wants to merge 1 commit intomainfrom
feat/reduce-session-state-394249
Closed

refactor: deduplicate session-state branch handling#171
LIU9293 wants to merge 1 commit intomainfrom
feat/reduce-session-state-394249

Conversation

@LIU9293
Copy link
Contributor

@LIU9293 LIU9293 commented Feb 28, 2026

Summary

  • extract shared assistant/user/result branch handling into applyAssistantUserResultBranches in session-state shared utilities
  • switch Claude, Qwen, Goose, and Kilo session-state adapters to the shared branch handler while preserving provider-specific pre-processing
  • remove duplicated helper implementations by reusing shared updateTool, parseTodosFromToolInput, and extractPrefixedRecord

Testing

  • bun test packages/agents/test

@LIU9293 LIU9293 closed this Feb 28, 2026
Sign up for free to 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