Repository navigation
feat(issue-5): align legacy wrapper commands with session contract - #14
Conversation
|
/agentic_review |
Code Review by Qodo
View findings (1) 1.
|
…active session - Add explicit SESSION_REQUIRED check in sessionStatusCommand for legacy status - Update documentation to correctly document status behavior - Update test to expect SESSION_REQUIRED error instead of success message
Qodo Issues FixedBoth Qodo issues have been addressed in this commit (de59880): Issue 1: succeeds with no session (📎 Requirement gap)Status: Fixed Updated to throw error when legacy command is called with no active session. The fix adds an explicit check before the success response: if (!result.active && !sessionId && allowLegacySingleActive) {
throw new ThreadloopError('SESSION_REQUIRED', 'No active session.', {
details: { hint: 'Start a session with threadloop session start.' },
});
}Issue 2: Docs misstate status behavior (🐞 Bug)Status: Fixed Updated documentation to correctly document that now fails with when zero sessions match:
All 29 tests pass, including the updated test case. |
|
Fixed both Qodo issues in commit de59880. Issue 1: status command now throws SESSION_REQUIRED when no active session. Issue 2: Docs updated to reflect correct status behavior. All 29 tests pass. |
Summary
--session <id>and--jsonsupport to the legacy wrapper surface where deterministic targeting is neededTesting
coast lookupcoast exec dev-1 -- sh -c "cd /workspace && npm test -- tests/integration/cli.test.ts tests/unit/session-service.test.ts"coast exec dev-1 -- sh -c "cd /workspace && npm run build"Closes #5