v1.6.1
What's Changed
Project Directory Resolution
- MCP roots and environment variable support: The MCP server now resolves the working directory from your client's first
file://workspace root, falling back toAMICUS_PROJECT_DIRand then the process cwd. This fixes the issue where stdio MCP servers spawned by desktop clients would incorrectly root in the app install directory instead of your actual project. - Canonical path normalization: A single
canonicalProjectPath()helper now normalizes project paths (slash direction, drive-letter case, trailing slashes, UNC shares) across creation and lookup, ensuring the system always agrees on which directory is which.
Session Management
- Global session index:
amicus_status,amicus_read, andamicus_listnow consult a globaltaskId -> projectindex, so a session created in one project can still be found when looked up from another. - Scoped shared-server sessions: Every OpenCode session on a shared server now carries its project directory in create and follow-up calls, ensuring headless MCP sessions are correctly filed even when the server spans multiple projects.
- Interactive mode directory agreement: When your launch directory differs from
--cwd(the normal sidecar-skill pattern), follow-up prompts no longer fail with "unable to retrieve session." The OpenCode session is now scoped to the project directory, and the Electron Web-UI route is built from the server-echoed session directory instead of a guessed one.
Error Reporting
- Improved failure diagnostics:
amicus_readnow surfaces the actual failure reason (crash, timeout, abort) for runs that produced no summary, instead of a bare "No summary available." - Consistent error naming:
amicus_abort's "session not found" message now names the resolved project, matching the output fromstatusandreadcommands.
CLI Improvements
- Per-command help blocks:
amicus council --help,amicus continue --help, and--helpforresume,doctor,setup,key, andmcpnow print scoped usage for each command instead of the full global help. - Removed spurious option: Dropped an invented
--prompt-fileline from the continue help block.
Testing
- Deterministic timeout testing: Forced the timeout path deterministically in shared-server tests so abort-scope tests no longer flake on CI.
Full Changelog: v1.6.0...v1.6.1