Repository navigation
Description
Problem
A Solenta Codex session cannot publish explicitly requested Planboard issues. The prompt requires coder-threads issue_list, issue_create, issue_set_plan and issue_complete, but none are callable. A host-side GitHub connector can read issues, while create_issue is rejected before execution.
Observed evidence (2026-09-05)
- Current project is currentbits/solenta, with a GitHub origin.
- User explicitly requested separate issues and then explicitly asked to retry.
- The enabled tool catalogue has coder-threads task_, work_suggest and thread_ tools, but no issue_* tools.
- A direct JavaScript availability check returned typeof tools.mcp__coder_threads__issue_create === "undefined".
- github_search_issues and github_fetch_issue succeeded. They verified Fix keyboard focus in app dialogs #916, Show Loading thread while an uncached selection is fetching #918 and Show thread search failures honestly (error + Retry) #919 as closed with plan:done.
- github_create_issue, with repository currentbits/solenta and label plan:todo, repeatedly returned: "MCP tool call requires approval, but approval policy is never".
- coder-threads task_add/task_claim/task_release and work_suggest succeeded, so MCP as a whole is not unavailable.
- Direct read-only host discovery was blocked by the sandbox's private-network policy. No gh writes were attempted.
- Six confirmed app defects remain ready to file in docs/issue-drafts/2026-09-05-app-audit.json.
- The user subsequently explicitly authorized delegating publication to the Grok pool; record the fork/publication outcome in this issue.
Investigation targets
electron/orchServer.js already implements the four Planboard handlers and registers them only when opts.planboard is true. The HTTP handler derives that flag from the bound project selected through the MCP URL's projectId and planboardNoteFor(project.path). Check the installed host version, per-provider URL binding, tool discovery/cache on resumed Codex sessions, and the approval classification of authorized first-party writes.
These are investigation targets, not proven root causes. Do not conflate missing tool registration with an approval rejection: both were observed and may need different fixes.
Related: #849 (first-party Planboard tools), #846 (Grok forks blocked under never), #847 (managed worktree Git permissions). This is the observed Codex runtime integration failure after the issue handlers exist in source. #849 is not an exact duplicate: it tracks adding the handlers; this issue tracks Codex not receiving them at runtime and GitHub writes being rejected under approval policy never.
Expected behavior
- A Codex session for a GitHub-backed project actually exposes the Planboard tools its prompt requires.
- Same-project issue publication explicitly requested by the user can execute through the intended host-side path, or the session presents a usable approval mechanism.
- Non-GitHub projects and cross-project writes retain their current restrictions.
- The prompt and error messages reflect effective capabilities, rather than sending the agent through unavailable tools and repeated blocked fallbacks.
- No broad sandbox bypass, local-token workaround or gh-write workaround is required.
Acceptance
- Integration coverage verifies the actual tools/list response for a project-bound Codex launch and resume, not just exported handlers.
- A user-authorized create -> plan:todo operation succeeds in the supported Codex permission configuration.
- Tests distinguish absent registration, stale discovery, missing project binding, and approval-policy rejection.
- A non-GitHub project omits issue tools and Planboard write instructions consistently.
- Confirm the Grok delegation outcome and whether the fault is provider-specific.
Grok worker publication outcome (2026-09-05)
- Fork succeeded. Grok worker thread
c34ce7bb-3714-481c-91e3-1335267db074in projectbdfb084e-f13d-4968-83eb-5bc85b5dd515received coder-threadsissue_listandissue_createand both executed without approval-policy errors. issue_createsucceeded seven times (six product defects plus this operational issue). Observed labels on the product issues:plan:todo, state OPEN.- Published: Unsent composer drafts disappear when switching threads in the real App #921 drafts, Failed mid-run queue saves clear the composer and lose the follow-up #922 failed queue save, Failed queue cancellation hides work that is still scheduled on the host #923 failed cancel, Manual run preflight failures permanently discard an existing queued prompt #924 preflight discard, Retry duplicates queued instructions when clearing the old queue fails #925 retry duplicate, Failed queued-message edits close the editor and discard the revised text #926 failed queue edit.
- Fault looks provider-specific: Codex omitted issue_* tools and rejected github_create_issue with "MCP tool call requires approval, but approval policy is never"; this Grok session exposed the same first-party Planboard writes and they succeeded.
Activity
currentbits commentedon Sep 9, 2026
Cause was missing ?projectId= on the Codex coder-threads MCP URL (orchServer skips issue_* without it). Implemented as #1163 on thread 9868e03d: getCodexMcpArgs binds projectId the same way Grok overlay does.