feat(agentctl): messaging mutations refreshView (v0.8.517)
Call refreshView after sendGuildMessage, editGuildMessage, and deleteGuildMessage for Phase 554 headless automation. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -17,6 +17,8 @@ Both modes use **`pearcord-ui-flow` `dispatchUiMessage`** — the same handler a
|
||||
|
||||
`AgentClient` resolves RPC replies before treating `{ event: "state" | "sidecar" }` push lines as events (fixes `wait-event` responses that include an `event` field).
|
||||
|
||||
**v0.8.517 (Phase 554):** Headless `sendGuildMessage`/`editGuildMessage`/`deleteGuildMessage` call `refreshView` after mutations. Bundle: `npm run test:agentctl-phase554-messaging` (chains `test:agentctl-phase520-messaging`).
|
||||
|
||||
**v0.8.516 (Phase 553):** Headless `searchGuildMessages` calls `refreshView` after search. Bundle: `npm run test:agentctl-phase553-search` (chains `test:agentctl-phase519-search`).
|
||||
|
||||
**v0.8.515 (Phase 552):** Headless `exportGuildAuditLog` refreshView re-verified for compliance automation. Bundle: `npm run test:agentctl-phase552-compliance` (chains `test:agentctl-phase536-compliance`).
|
||||
|
||||
+8
-3
@@ -920,17 +920,22 @@ class HeadlessSession {
|
||||
|
||||
async sendGuildMessage (content, opts = {}) {
|
||||
if (!this.platform) throw new Error('headless not started')
|
||||
return this.platform.sendMessage(content, opts)
|
||||
const out = await this.platform.sendMessage(content, opts)
|
||||
await this.refreshView()
|
||||
return out
|
||||
}
|
||||
|
||||
async editGuildMessage (messageId, content) {
|
||||
if (!this.platform) throw new Error('headless not started')
|
||||
return this.platform.editMessage(messageId, content)
|
||||
const out = await this.platform.editMessage(messageId, content)
|
||||
await this.refreshView()
|
||||
return out
|
||||
}
|
||||
|
||||
async deleteGuildMessage (messageId) {
|
||||
if (!this.platform) throw new Error('headless not started')
|
||||
return this.platform.deleteMessage(messageId)
|
||||
await this.platform.deleteMessage(messageId)
|
||||
await this.refreshView()
|
||||
}
|
||||
|
||||
async toggleGuildReaction (messageId, emoji) {
|
||||
|
||||
Reference in New Issue
Block a user