Skip to content

Planboard requires gh, but managed sessions cannot authenticate or reach GitHub #848

Closed

Description

@currentbits

Related: #608, which proposes up-front forge readiness detection. This
issue covers the stronger runtime contradiction where Planboard instructions
require GitHub writes from a session that has no usable GitHub path.

Problem

The thread prompt requires multi-step plans to be created and maintained as
GitHub issues using gh. Both authentication and connectivity failed inside
the managed session.

Before reauthentication:

github.com
  X Failed to log in to github.com account currentbits (default)
  - Active account: true
  - The token in default is invalid.

The user then reauthenticated and asked for another attempt. The managed
session still reported the same invalid token. A direct API probe separated
the network failure from the higher-level command:

$ gh api user --jq .login
error connecting to api.github.com
check your internet connection or https://githubstatus.com

Environment details:

gh version 2.97.0 (2026-07-31)
repository: currentbits/solenta

The GitHub connector could search issues and found #608, proving a read route
exists elsewhere in the product. Connector issue creation was nevertheless
rejected with:

MCP tool call requires approval, but approval policy is never

Therefore neither mandated route can write: gh has no network/auth visibility
and the connector has an impossible approval requirement.

Impact

  • Agents cannot create or update the Planboard issues the prompt requires.
  • Duplicate checks cannot be performed through the required gh route.
  • Reauthenticating in the host is not reflected reliably in the running
    session.
  • Authentication failures and sandbox network denial are conflated, sending
    users toward repeated logins that cannot fix connectivity.
  • Planning work cannot be recorded on the board even after explicit user
    approval.

Expected behavior

When Planboard instructions are injected, Solenta must provide one working,
authorized path to the repository:

  1. allow the sandboxed gh process to reach api.github.com and see refreshed
    credentials; or
  2. expose a first-party issue writer that is usable after an explicit user
    request under the active permission policy.

If neither is available, omit the Planboard mandate and show a preflight error
before work begins.

Suggested fix direction

  • Extend Source Control settings: probe forge readiness up front, not from stderr after a failure #608's forge preflight to report four states separately: CLI missing,
    authentication invalid, network blocked, and ready.
  • Run the preflight in the same execution environment and sandbox as the agent,
    not only in the desktop host.
  • Refresh or remount gh credentials when the user reauthenticates, or clearly
    require a new session if credentials are snapshotted.
  • Allow only the GitHub endpoints needed by configured repository operations
    when a Planboard workflow is active.
  • Make issue creation idempotent by searching exact titles before writes.

Acceptance criteria

  • In a managed Planboard session, gh auth status identifies the active
    account without exposing tokens.
  • gh issue list, label creation, issue creation, issue editing, and issue
    closing work against the bound repository.
  • Reauthentication becomes visible to the session, or the UI explicitly says
    that a new session is required.
  • A network-denied session reports network blocked, not token invalid.
  • If gh is unavailable, an explicitly approved first-party issue writer can
    perform the same Planboard operations.
  • No GitHub access is granted to repositories outside the project selected by
    the current thread.

Found while planning live speech-to-text in thread 15ff9829-4446-44ad-92a2-c4e14e991e05 on 2026-09-03. Draft: docs/issue-drafts/2026-09-03-solenta-session-blockers.md.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Sep 3, 2026
  2. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Implemented on this branch: when the Planboard note is injected (GitHub origin) and Codex is in workspace-write, we pass -c sandbox_workspace_write.network_access=true so sandboxed gh can reach api.github.com.

    This is all-network, not a GitHub allowlist — Codex has no domain-scoped -c we could use. Plan mode (read-only) is unchanged. Keychain access for gh inside the seatbelt was not verified; if that still fails, a first-party Planboard writer (wrapping electron/issues.js) is the follow-up.

    See electron/codexWorkspaceWrite.js allowNetwork.

  3. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Follow-up on this thread: Codex 0.152.0 now has features.network_proxy, so Planboard no longer opens the whole network.

    When the Planboard mandate is injected and the session is workspace-write, Solenta now passes:

    -c sandbox_workspace_write.network_access=true
    -c features.network_proxy.enabled=true
    -c 'features.network_proxy.domains={ "api.github.com" = "allow", "github.com" = "allow", "uploads.github.com" = "allow" }'
    

    network_access=true is still the seatbelt gate (the proxy does nothing without it). Tests assert the allowlist form, not blanket network.

    Codex plan (read-only) cannot reach GitHub, so the prompt degrades to “do not file issues with gh” instead of mandating the board. danger-full-access is unchanged.

    Still open on this issue: gh keychain/token visibility inside the seatbelt, and a first-party writer if gh stays unusable.

  4. added
    plan:done
    and removed
    plan:doing
    on Sep 3, 2026
  5. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Fork: Fix Solenta session blockers: forks, git, Planboard". Closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions