Skip to content

refactor(frontend): separate session activity state from streaming state#202

Merged
chriswritescode-dev merged 3 commits intomainfrom
opencode/refactor-session-activity
Apr 27, 2026
Merged

refactor(frontend): separate session activity state from streaming state#202
chriswritescode-dev merged 3 commits intomainfrom
opencode/refactor-session-activity

Conversation

@chriswritescode-dev
Copy link
Copy Markdown
Owner

Summary

  • Refactor session activity state by separating hasActiveStream into isSessionActive and isStreamingResponse
  • Remove OpenCodeSupervisor service (functionality merged into single-server architecture)
  • Remove assistant-mode service and related hooks/components
  • Simplify MessageThread, PromptInput, and related UI components
  • Update tests to reflect new state management approach

Changes (88 files)

  • backend/src/ - Remove supervisor/assistant-mode services, consolidate routes
  • frontend/src/pages/SessionDetail.tsx - Session activity state refactor
  • frontend/src/components/message/PromptInput.tsx - New isSessionActive/isStreamingResponse props
  • frontend/src/components/message/MessageThread.tsx - Simplified message handling
  • frontend/src/components/navigation/MobileTabBar.tsx - Tab bar consolidation
  • frontend/src/hooks/ - Remove assistant-mode and sidebar-related hooks
  • frontend/src/pages/AssistantRedirect.tsx - Removed (functionality consolidated)

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

Checklist

  • Code follows project style (no comments, named imports)
  • TypeScript types are properly defined
  • Tests added/updated (80% coverage target)
  • pnpm lint passes locally
  • pnpm typecheck passes locally

Use isSessionActive instead of isStreamingResponse to determine when
FloatingTTSButton should be shown, ensuring it only appears when session
is not actively running.
@chriswritescode-dev chriswritescode-dev merged commit 23afe0d into main Apr 27, 2026
3 checks passed
@chriswritescode-dev chriswritescode-dev deleted the opencode/refactor-session-activity branch April 27, 2026 02:38
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