Skip to content

Overnight local coding stalled by GitHub MCP commit detour, approval-context mismatch and global checkpoint barrier #55894

Open

Description

@lucas-p-costa

Summary

At the user's explicit request, this report documents an agent execution and coordination failure during an unattended overnight coding task on 2026-10-21. The user reports losing the overnight execution window.

The agent chose a GitHub MCP Git-data workflow for committing local work, then made a remote checkpoint a global barrier for otherwise independent implementation work. An automatic review rejected the remote commit as insufficiently authorized despite the handoff explicitly identifying the destination repository and authorizing commits, push, CI and a pull request.

This report deliberately excludes the user's project identity, repository contents, credentials, full conversation and raw logs.

Authorized task

The user instructed the agent to work in a specified existing local checkout, use a separate working branch, implement successive waves, commit, push, run CI and open a PR to the specified repository/base. The user prohibited merge, deployment, force push and interference with another developer's security work.

The user did not request a new worktree or GitHub MCP for Git operations.

Observed sequence

  1. Local git switch -c initially failed because the sandbox protected .git as read-only. The subsequent escalation succeeded and the working branch was created. That approved branch operation was not the later unresolved blocker.
  2. Local shell access, editing and tests worked. No claim is made that a shell push would have succeeded; local commits and continued implementation did not require remote authentication.
  3. The agent followed an environment preference for service connectors and chose GitHub MCP operations to construct the remote commit instead of keeping checkpoints local.
  4. It staged the local snapshot and submitted a Git tree containing 63 full files, approximately 972 KB, through the GitHub connector. The returned tree SHA matched the local staged tree.
  5. The subsequent create_commit action was rejected by automatic review, with a stated concern about exporting code to an unverified destination without explicit authorization. The original handoff had explicitly named that repository and requested a PR. Please investigate whether authorization contained in the attached handoff was available and correctly interpreted by the reviewer; the internal cause is not established here.
  6. Before the rejection, the coordinator had told implementation agents to hold their next-wave changes outside the checkout until this checkpoint was completed. Their work was prepared and they repeatedly reported readiness, but the checkpoint barrier was not released while the remote operation was pending.
  7. The result was a global loss of progress rather than a narrowly isolated remote-publication blocker. The user had explicitly instructed continued implementation of independent, safe slices.

Repeated connector choice while reporting the incident

After the user explicitly complained about the GitHub MCP workflow, explained that it had failed, and asked why ordinary shell commands had not been used, the assistant attempted to submit this incident report through the same GitHub MCP connector. Automatic review rejected that issue-creation attempt; no issue was created.

This was an additional agent judgment failure: the assistant repeated the disputed tool choice while reporting the failure, without adequately incorporating the user's objection or assessing the shell-based GitHub CLI alternative first. The user's objection had already been made clear before the reporting attempt. A general connector-routing preference does not excuse this failure to adapt to the user's stated concern. The assistant only acknowledged the gh issue create alternative after the user asked about it again.

Worktree clarification

The user reported an unexpected worktree-related permission prompt. In the tool history available to this reporting assistant, the confirmed Git operation is git switch -c; no git worktree add is visible. Please investigate the actual UI wording/telemetry rather than treating worktree creation as an established fact.

Expected behavior

  • Preserve the explicit local-checkout workflow and use local shell Git for local branches/checkpoints where supported.
  • Treat a connector preference as a routing preference, rather than a reason to reconstruct local Git commits through remote Git-data APIs.
  • Incorporate explicit user objections into subsequent tool selection, including when reporting the original incident; assess the requested shell workflow before repeating the disputed connector choice.
  • Preflight necessary permissions and remote authentication before an unattended run.
  • Retain the user's explicit repository/PR authorization in approval context, including when supplied through a referenced attachment.
  • Honor real security denials, but keep an external commit/push/PR problem from blocking independent authorized local development.
  • Bound source freezes and checkpoint barriers, and react to implementation-agent readiness rather than leaving agents indefinitely on hold.
  • Clearly distinguish a sandbox boundary from a high-risk/destructive command, so routine local Git permission requests are understandable.

Impact and evidence limits

The user considers this a serious reliability failure and reports the loss of an overnight coding window. The agent's tool-routing and coordination choices are directly visible in the conversation. Exact elapsed downtime, app/runtime build versions and any backend approval-context defect have not been independently verified. This is an observed-session incident report, not a deterministic clean-install reproduction or a request to weaken security checks.

Activity

  1. added
    bug
    mcp
    model-behavior
    subagent
    sandbox
    on Oct 21, 2026
  2. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. samvallad33 commented on Oct 23, 2026

    @samvallad33

    Hi Lucas,

    How much of the overnight window was gone before you spotted the stall?

    By morning you should see exactly why it froze and what it tried after your objection. Worth a short look at a simple system joining memory, security and authority?

    Sam

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

    bugmcpmodel-behaviorsandboxsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions