Commit Graph

2 Commits

Author SHA1 Message Date
x22x22
cca1605101 openspec/lightweight-tasks/task1-2-5.md
Add tests for runStreamJsonSession and enhance session handling

- Implement tests for runStreamJsonSession to validate user prompts and message handling.
- Improve session termination logic to ensure all active runs are awaited.
- Log user prompts with additional metadata for better tracking.
2025-10-30 16:14:06 +08:00
x22x22
f5f378f262 openspec/lightweight-tasks/task1-2-4-1.md
Implement control request handling and refactor related functions

- Added `handleIncomingControlRequest` method to `StreamJsonController` for processing control requests.
- Created `input.test.ts` and `session.test.ts` to test control request handling.
- Refactored `runStreamJsonSession` to delegate control requests to the controller.
- Moved `extractUserMessageText` and `writeStreamJsonEnvelope` to a new `io.ts` file for better organization.
- Updated tests to ensure proper functionality of control responses and message extraction.
2025-10-30 12:59:05 +08:00