You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Auto-propagate GitHub PAT to all agents on update #211
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")asyncdefupdate_github_pat(...):
# ... existing validation and save logic ...# Auto-propagate to all active agentspropagation_result=awaitpropagate_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)
Activity
feat(settings): auto-propagate GitHub PAT to running agents (Abilitya…
docs(github-sync): document global PAT auto-propagation (Abilityai#211)
feat(settings): auto-propagate GitHub PAT to running agents (#211) (#402
fix(git): address #1271 review + fix flaky test (regression-diff CI)
fix(git): per-agent GitHub PAT now propagates to existing containers (#…
fix(setup): de-ambiguate email regex to clear CodeQL polynomial-ReDoS (…
Release: v0.8.0 (#1529)
fix(lifecycle): one owner for git env across both rebuild paths (ent#…
fix(lifecycle): correct-never-introduce git env; drop the auto-sync b…
fix(lifecycle): one owner for git env across both rebuild paths (ent#…
fix(lifecycle): correct-never-introduce git env; drop the auto-sync b…
fix(lifecycle): one owner for git env across both rebuild paths (ent#…
fix(lifecycle): correct-never-introduce git env; drop the auto-sync b…
fix(lifecycle): one owner for git env across both rebuild paths (ent#…
fix(lifecycle): correct-never-introduce git env; drop the auto-sync b…
fix(lifecycle): re-derive git env from the DB on config-drift recreat…
feat(git): bind an agent to a GitHub repo you own — post-creation own…