feat(agentctl): refreshView after screen start/stop (v0.8.523)

Headless screen helpers refresh view snapshots for Phase 560 automation.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 14:36:15 -04:00
co-authored by Cursor
parent 8bf03ce97c
commit 9d66785e37
2 changed files with 8 additions and 2 deletions
+2
View File
@@ -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.523 (Phase 560):** Headless `startGuildScreenShare` and `stopGuildScreenShare` call `refreshView` after mutations. Bundle: `npm run test:agentctl-phase560-screen` (chains `test:agentctl-phase526-screen`).
**v0.8.522 (Phase 559):** Headless `joinGuildStageChannel`, `requestGuildStageSpeak`, and `approveGuildStageSpeaker` call `refreshView` after mutations. Bundle: `npm run test:agentctl-phase559-stage` (chains `test:agentctl-phase525-stage`).
**v0.8.521 (Phase 558):** Headless `joinGuildVoiceChannel`, `leaveGuildVoiceChannel`, and `setGuildVoiceMute` call `refreshView` after mutations. Bundle: `npm run test:agentctl-phase558-voice` (chains `test:agentctl-phase524-voice`).
+6 -2
View File
@@ -1020,12 +1020,16 @@ class HeadlessSession {
async startGuildScreenShare (label) {
if (!this.platform) throw new Error('headless not started')
return this.platform.startScreenShare(label)
const out = await this.platform.startScreenShare(label)
await this.refreshView()
return out
}
async stopGuildScreenShare () {
if (!this.platform) throw new Error('headless not started')
return this.platform.stopScreenShare()
const out = await this.platform.stopScreenShare()
await this.refreshView()
return out
}
async playGuildSoundboardSound (name) {