Skip to content

Planboard live steps for opencode/kimi, planboard on ssh remotes (#180) - #1581

Merged
currentbits merged 1 commit into
mainfrom
fix/180-planboard-live-steps
Oct 10, 2026
Merged

currentbits merged 1 commit into
mainfrom
fix/180-planboard-live-steps

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Closes #180.

Live plan steps beyond claude

  • opencode: extractToolEvent only read part.name. Real opencode run --format json tool parts are {tool, callID, state:{status, input, output|error}} (checked against stored opencode sessions), so every real opencode tool event was dropped, not just todos. The parser now flattens state onto name/input/output, and todowrite todos are attached untruncated. Side effect: opencode tool cards now render.
  • kimi: TodoList (kimi-code) and SetTodoList (kimi-cli) take {todos:[{title, status: pending|in_progress|done}]}. The args are parsed and attached to the event.
  • planStepsFrom accepts title/done. The kimi and opencode run loops call savePlanSteps.
  • codex todo_list was already wired, so no change there.

Planboard on ssh-remote projects

On an ssh-remote project, project.path is not a local checkout, so before this PR the note gate, the MCP issue tools and the board all failed for remotes.

  • issues.js: originUrlOf(project|path) reads origin over ssh for remotes, cached per host+path (successes only). For remotes, gh/glab run from the home dir with the repo named explicitly. Local paths behave exactly as before.
  • ghApiTryAsync takes opts.originUrl (in place of reading origin from cwd) and opts.ghRepo (adds -R on the gh fallback only, never on gh api).
  • planboardNoteFor uses the same lookup, so the prompt note and the orchServer issue-tool registration follow it.
  • orchServer and ipc-git pass the project object for remotes. Autodispatch and postmerge still skip remotes on purpose, so they are unchanged.

Risks

  • The first dispatch on a remote does one sync ssh call (BatchMode, ConnectTimeout=10). This matches the existing sync ssh in worktrees. While the host is down, each dispatch waits for the timeout.
  • If a remote checkout's origin is re-pointed, the cache needs an app restart.

Tests

  • New: opencode real-shape and todowrite, kimi TodoList/SetTodoList, planStepsFrom kimi shape, a remote project end to end (ssh faked: origin over ssh, -R, note, cache), and the ghApiTryAsync originUrl override on the API path.
  • Full test:electron on this branch (pre-rebase onto the 2 newest main commits): 4529/4529 pass. Touched suites re-run after the rebase: 197/197.

🤖 Generated with Claude Code

- opencode: parse real `run --format json` tool parts ({tool, callID,
  state}); the parser only read part.name, so real tool events were
  dropped. todowrite todos now reach the planboard.
- kimi: TodoList (kimi-code) / SetTodoList (kimi-cli) args become plan
  steps; planStepsFrom accepts {title, status: done}.
- ssh-remote projects: issues.js resolves origin over ssh (cached per
  remote) and runs gh/glab from the home dir with an explicit repo;
  ghApiTryAsync takes opts.originUrl / opts.ghRepo. planboardNoteFor and
  the MCP issue-tool gate use the same lookup, so remotes get the note
  and working issue_* tools.

Codex todo_list was already wired.

Closes #180

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T08:41:28.957527Z e7897e6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7897e6220

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread electron/ipc-git.js
Comment on lines +68 to +70
const remote = projects.find(
(p) => p && p.remoteHost && projectPath && p.path === projectPath,
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resolve issue targets by project identity

When two SSH projects have the same stored path—for example, /srv/app on two different hosts—this lookup ignores remoteHost and always selects the first matching project. Consequently, listing, creating, or updating Planboard issues for the second project uses the first host's origin and can mutate the wrong repository. The issue IPC contract should carry a project ID or otherwise include the remote host when resolving the target.

Useful? React with 👍 / 👎.

@currentbits
currentbits merged commit c3e1e7c into main Oct 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Planboard live steps only work for claude; codex/opencode/kimi plans never appear

1 participant