agent-orchestrator/packages/plugins
Harsh Batheja 9fcc1d9ed5 fix(plugin-kimicode): plumb workspacePath into AgentLaunchConfig
The kimicode plugin's --work-dir was passing projectConfig.path, which
breaks worktree-mode workspaces. In worktree mode, projectConfig.path is
the original repo root while session.workspacePath is the per-session
checkout — they differ. Either kimi would write to the project root
(breaking worktree isolation) or md5(projectConfig.path) would diverge
from md5(session.workspacePath), so getActivityState/getSessionInfo would
never find this session's bucket.

Fix:
- Add optional `workspacePath` field to AgentLaunchConfig.
- Plumb it through all 3 launch call sites in session-manager.ts.
- kimicode getLaunchCommand uses config.workspacePath, falling back to
  config.projectConfig.path when undefined.
- Tests for the divergent-paths case.

Public-interface change: AgentLaunchConfig grows one optional field.

Invariants preserved:
- Agent.getLaunchCommand signature unchanged — still takes one
  AgentLaunchConfig.
- Existing plugins (claude-code, aider, codex, opencode) compile and run
  unchanged; the new field is optional and they ignore it.
- Clone-mode workspaces (where workspacePath === projectConfig.path)
  produce the same launch command as before.
- Fallback to projectConfig.path keeps callers that don't pass the new
  field working — no flag day required.
2026-04-29 03:53:32 +05:30
..
agent-aider fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
agent-claude-code fix: improve agent plugin cost accounting and restore safety 2026-04-18 13:56:59 +05:30
agent-codex fix: restore permissionless codex workers with bypass 2026-04-19 19:59:16 +05:30
agent-cursor fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
agent-kimicode fix(plugin-kimicode): plumb workspacePath into AgentLaunchConfig 2026-04-29 03:53:32 +05:30
agent-opencode fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
notifier-composio Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-desktop Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-discord Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-openclaw Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-slack Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-webhook Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
runtime-process Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
runtime-tmux Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
scm-github fix: finish PR #1300 major follow-up fixes 2026-04-18 12:35:15 +05:30
scm-gitlab fix: finish PR #1300 major follow-up fixes 2026-04-18 12:35:15 +05:30
terminal-iterm2 fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
terminal-web fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
tracker-github fix(cli): stop writing broken yaml when `ao start` runs in a new folder 2026-04-14 22:13:01 +05:30
tracker-gitlab refactor: clean up redundant requireRepo calls and nullish coalescing 2026-04-14 22:13:02 +05:30
tracker-linear Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
workspace-clone Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
workspace-worktree Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30