Skip to content

feat: Auto-propagate GitHub PAT to all agents on update #211

Closed

Description

@vybe

Problem

When an admin updates the GitHub PAT in Settings, running agents continue using the old PAT. The admin must manually restart each agent or call a propagation endpoint.

Solution

Make PAT propagation the default behavior when the PAT is updated. In the existing update_github_pat endpoint (settings.py:268), after saving the new PAT to the database, automatically propagate it to all active agents.

Implementation

@router.put("/settings/github-pat")
async def update_github_pat(...):
    # ... existing validation and save logic ...
    
    # Auto-propagate to all active agents
    propagation_result = await propagate_github_pat_to_agents(new_pat)
    
    return {
        "status": "updated",
        "propagation": propagation_result
    }

Frontend

Update the Settings page to show propagation results after PAT update:

  • "PAT updated and applied to 5 agents"
  • Or warning: "PAT updated but failed to apply to: agent-x, agent-y"

Dependencies

  • Depends on the propagation endpoint/service being implemented first (#TBD)

Files

  • src/backend/routers/settings.py (update_github_pat endpoint, line 268)
  • src/frontend/src/views/Settings.vue (show propagation result)

Acceptance Criteria

  • Updating GitHub PAT automatically propagates to all active agents with GITHUB_PAT
  • Response includes per-agent propagation status
  • Frontend shows propagation results (success count, any failures)
  • Partial failures don't block the PAT update itself
  • Delete PAT does NOT propagate (agents keep working until next restart)

Activity

  1. added
    priority-p1
    type-feature
    on Mar 27, 2026
  2. added
    complexity-low
    theme-devex
    on Jun 3, 2026
  3. added a commit that references this issue on Jun 19, 2026
  4. added a commit that references this issue on Jul 8, 2026
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

    complexity-lowpriority-p1theme-devextype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions