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:
@@ -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.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.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`).
|
**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
@@ -733,7 +733,9 @@ class HeadlessSession {
|
|||||||
|
|
||||||
async verifyGuildBotToken (token) {
|
async verifyGuildBotToken (token) {
|
||||||
if (!this.platform) throw new Error('headless not started')
|
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 = {}) {
|
async sendGuildBotMessage (botId, content, opts = {}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user