Skip to content

fix(admin): drop the duplicate restart banner from the Peers tab (CLEAN-98) - #97

Merged
maksymhryzodub-prog merged 1 commit into
mainfrom
fix/CLEAN-98-peers-tab-restart-banner
Sep 19, 2026
Merged

maksymhryzodub-prog merged 1 commit into
mainfrom
fix/CLEAN-98-peers-tab-restart-banner

Conversation

@maksymhryzodub-prog

@maksymhryzodub-prog maksymhryzodub-prog commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

The last commit of #91 never made it into the squash — main still carries the restart banner inside the Peers tab. This is that commit, cherry-picked onto current main.

The agent page already raises a restart banner above every tab, and the peer store is what raises it: connect, import, refresh and remove all call markPendingRestart. The copy inside the tab was a second button for the same job on a different code path — it called agentStore.restart directly, so unlike the page banner's button (useAgentLifecycle.restartclearPendingRestart + in-flight overlay + refresh) it left the banner standing and the page unrefreshed. Pressing it looked like nothing happened.

The armed badge next to Peer network stays: it reports what the running pod actually holds, which the page banner cannot know.

No version bump here — it would collide with #96 for no reason.

Verification: npx nuxt typecheck in admin reports nothing from this change (the one error it does report, reins/data/knowledge.gateway.ts retrying, is pre-existing on main — the committed SDK has been stale since CLEAN-96). The SFC compiles.

Jira: CLEAN-98

🤖 Generated with Claude Code

https://claude.ai/code/session_01SZ9dCrzZqd5SwR4erLYe12

…AN-98)

The agent page already raises a restart banner above every tab, and the peer
store is what raises it — connect, import, refresh and remove all call
markPendingRestart. The copy inside the Peers tab added a second button for
the same job, wired to a different code path, and it did not clear the page
banner when pressed, so the tab kept telling the operator to restart an agent
that had just restarted.

What the page banner cannot know stays where it was: the armed badge next to
"Peer network" still reports whether the RUNNING pod holds this peer set.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SZ9dCrzZqd5SwR4erLYe12
@maksymhryzodub-prog
maksymhryzodub-prog merged commit e4504d9 into main Sep 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant