Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
There was a problem hiding this comment.
| createRestRouter({ | ||
| isSessionVisible: isAssistantSessionVisible, |
Primary change type
Problem and motivation
An unfinished Continue child was hidden from Assistant history but still appeared in /api/state and /api/sessions, where the UI could offer Terminal activation before native preparation completed.
Summary and scope
Apply the durable receipt visibility check to general session projections and direct session routes, including Start Terminal. Hydrate hidden allocations before accepting requests and omit their runtime/lifecycle and session-status events. Keep internal registry rows available for exact operation recovery.
Related work
Related issue: https://linear.app/sapiom/issue/SAP-3292
Depends on #1032. Native stack target: main.
Validation
pnpm --filter @sapiom/harness exec vitest run src/server/assistant-lifecycle-wiring.test.ts src/core/assistant-state-projection.test.ts src/server/rest.test.ts src/server/assistant-records.test.ts— 135 tests passed.Server TypeScript, scoped ESLint, formatting and diff checks passed. Before the fix, both new visibility regressions failed. The assembled server now verifies hidden state/list/direct-action behavior before and after reboot, while prepared children remain discoverable.
Tests and documentation
Extends the actual server composition fixture and adds private runtime/lifecycle projection coverage. Updated assistant-history.md. Increment: 163 changed lines including tests/docs/changeset; SDK pr:size is absent.
Compatibility and release impact
Security
AI assistance
Checklist