fix(agentctl): refreshView after verifyGuildBotToken (Phase 577)

Re-verify bot install/message flows and refresh view after token verify
for headless agentctl Phase 577 bundle.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 15:46:19 -04:00
co-authored by Cursor
parent db8d24ad99
commit 72c28d1c20
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -25,6 +25,8 @@ Both modes use **`pearcord-ui-flow` `dispatchUiMessage`** — the same handler a
**v0.8.527 (Phase 564):** Headless `sendFriendRequest` and `acceptFriendRequest` `refreshView` re-verified. Bundle: `npm run test:agentctl-phase564-contacts` (chains `test:agentctl-phase546-contacts`).
**v0.8.540 (Phase 577):** Headless `installGuildBotFromToken`/`sendGuildBotMessage`/`verifyGuildBotToken` `refreshView` re-verify. Bundle: `npm run test:agentctl-phase577-bots` (chains `test:agentctl-phase576-slash`).
**v0.8.539 (Phase 576):** Headless `registerGuildSlashCommands`/`deleteGuildSlashCommand`/`executeGuildSlashCommand` `refreshView` re-verify. Bundle: `npm run test:agentctl-phase576-slash` (chains `test:agentctl-phase575-webhooks`).
**v0.8.538 (Phase 575):** Headless `createGuildChannelWebhook`/`deleteGuildChannelWebhook`/`executeGuildChannelWebhook` `refreshView` re-verify. Bundle: `npm run test:agentctl-phase575-webhooks` (chains `test:agentctl-phase574-compliance`).
+3 -1
View File
@@ -733,7 +733,9 @@ class HeadlessSession {
async verifyGuildBotToken (token) {
if (!this.platform) throw new Error('headless not started')
return this.platform.verifyBotToken(token)
const out = await this.platform.verifyBotToken(token)
await this.refreshView()
return out
}
async sendGuildBotMessage (botId, content, opts = {}) {