Skip to content

fix(oclite): add text streaming and session error handling (#142)#143

Merged
randomm merged 1 commit intodevfrom
fix/issue-142-tui-streaming
Feb 5, 2026
Merged

fix(oclite): add text streaming and session error handling (#142)#143
randomm merged 1 commit intodevfrom
fix/issue-142-tui-streaming

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Feb 5, 2026

Fixes #142

Summary

  • Add text streaming handler for message.part.updated events with delta content
  • Add try/catch for session initialization with user-visible errors
  • Add race condition guard in handleSubmit to prevent premature message submissions
  • Fixes non-functional TUI by enabling text response streaming

Changes

  1. useSDKEvents.ts - Added text streaming handler for incremental streaming
  2. App.tsx - Added session initialization error handling
  3. App.tsx - Added race condition guard in handleSubmit

Verification

  • ✅ Type check passed: bun run typecheck
  • ✅ All tests passed: 1298 pass, 0 fail
  • ✅ Binary built successfully: bun run build:lite

- Add text streaming handler for message.part.updated events with delta
- Add try/catch for session initialization with user-visible errors
- Add race condition guard in handleSubmit to prevent premature submissions
- Fixes non-functional TUI by enabling text response streaming
@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@randomm randomm merged commit 9ef1ea6 into dev Feb 5, 2026
2 of 3 checks passed
@randomm randomm deleted the fix/issue-142-tui-streaming branch February 5, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant