When ~/codeman-cases/ does not exist (fresh install or first use), clicking "Run Shell" or "Run Claude Code" with the default testcase case fails with:
Error: Case path not found
Root cause (two bugs in session-ui.js)
-
runClaude() (~line 291): When auto-creating a missing case, the response is accessed as createCaseData.case, but POST /api/cases returns { success, data: { case: { name, path } } }. Should be createCaseData.data.case.
-
runShell() (~line 430): No auto-create logic at all. If the case does not exist, it immediately throws. Should mirror runClaude() auto-create behavior.
Steps to reproduce
- Remove or ensure
~/codeman-cases/ does not exist
- Start Codeman (
npm run dev)
- Click "Run Shell" with default "testcase" case
Expected: Case directory is auto-created and session starts.
Actual: Error: Case path not found
When
~/codeman-cases/does not exist (fresh install or first use), clicking "Run Shell" or "Run Claude Code" with the defaulttestcasecase fails with:Root cause (two bugs in
session-ui.js)runClaude()(~line 291): When auto-creating a missing case, the response is accessed ascreateCaseData.case, butPOST /api/casesreturns{ success, data: { case: { name, path } } }. Should becreateCaseData.data.case.runShell()(~line 430): No auto-create logic at all. If the case does not exist, it immediately throws. Should mirrorrunClaude()auto-create behavior.Steps to reproduce
~/codeman-cases/does not existnpm run dev)Expected: Case directory is auto-created and session starts.
Actual:
Error: Case path not found