Refactor server lifecycle and RPC route contracts#223
Conversation
Covers F0.1/F0.2, F2.1/F2.2/F2.3, F3.1, F4.1, and F6.1 slice 1A. TUI runtime startup now requires shared runtime client, session activity stream, and prompt activity stream. Direct raw runtime event bridge, ask bridge, raw-engine runtime client helpers, and direct process manager fallback were removed from production CLI code; tests use loopback service adapters.
Covers F3.3 slice 2A. Prompt activity now has sequence cursors, retained replay, gap errors, and a snapshot completion marker. TUI prompt recovery resubscribes through prompt activity only instead of reconciling via ask/approval view APIs.
Covers F4.3 first cut: runtime control now exposes SubmitUserTurn as canonical server command for pre-submit compaction, prompt history, primary-run gating, and final user-message submit. UI runtime client routes normal submits through it; legacy split RPCs remain until UI queue/pre-submit orchestration is migrated.
Covers F4.3: TUI no longer runs separate pre-submit check/compaction/prompt-history orchestration before submit. Normal user turns use the server-owned SubmitUserTurn boundary; UI queue/hydration tests now track active submit state only.
Covers F4.2. Replaces text-matched queued runtime discard with queue item ids and typed UI queue state.
Covers F4.4. Busy Ctrl+C now records interrupt intent; final interrupted activity and queue restoration come from server run-state completion.
Covers F5.3 and F5.4. Logout auth mutation now lives only in session lifecycle service; transition API uses typed serverapi action constants.
Covers F1.1. Server launch planner no longer owns picker/open-or-create behavior; CLI selection remains a view concern.
Covers F1.2.
Covers F5.2.
|
Important Review skippedToo many files! This PR contains 157 files, which is 7 over the limit of 150. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (157)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
shared/rpccontractroute metadata for RPC methods and derive gateway auth/handler exposure plus route coverage from it.Verification
./scripts/test.sh ./..../scripts/build.sh --output ./bin/buildergo vet, build, testsNotes
docs/dev/techdebt/is untracked local user work and intentionally not included.