Skip to content

feat(desktop): ship the X procedure and keep driven browser guests rendering - #786

Merged
olibaron merged 1 commit into
mainfrom
fix/x-procedure-guest-throttling
Nov 24, 2026
Merged

olibaron merged 1 commit into
mainfrom
fix/x-procedure-guest-throttling

Conversation

@olibaron

Copy link
Copy Markdown
Contributor

Summary

  • X procedure. The aeven preset now ships procedures/x-post.md, recalled the same way as linkedin-post. It was recorded live on x.com from drafts only; nothing was posted, and the account has no unsent or scheduled drafts left. It covers:
    • threads for the 280-character limit: "Add another post" and "Post all", insert position, the active part, and what blocks Post all;
    • the link card versus media: removing the media brings the card back, so remove the card last;
    • up to 20 mixed photos, videos and GIFs, the media editor, and alt text;
    • polls, reply settings, Content Disclosures, scheduling, and drafts;
    • both composer generations X serves, the Draft.js composer with test ids and the newer textarea "Create post" dialog;
    • traps: Escape closes the composer, hidden duplicate "More" buttons, and old-UI Discard is confirmationSheetCancel.
  • Guest throttling fix (apps/desktop/src/browser-guests.ts).
    • The bug: when the Aeven window was hidden or covered, the sidebar browser guest was throttled. The page reported visibilityState: hidden and drew 0 animation frames, so a menu or dialog the agent closed never finished its exit animation, and its invisible backdrop took the next click. Captures timed out too.
    • The fix: the guest now keeps background throttling off while an engine operation drives it, and for 60 s after the last one. That gives transitions started by the last action time to finish across the model's turn. Pages the agent left are throttled again.

Verification

  • Gates: on a clean worktree, pnpm run check:ci passed 56/56 gates and pnpm run test passed 1,446 files (23,257 tests).
  • Throttling, checked live in Aeven Dev with the window in the background:
    • throttled: requestAnimationFrame ran 0 frames and the page reported hidden;
    • guest unthrottled, host window still throttled: about 120 frames/s, visible, and the stuck X sheet cleared;
    • Page.captureScreenshot worked again.
  • Procedure: readShippedProcedures parses both shipped procedures; the x-post summary is 843 characters (the limit is 950).

🤖 Generated with Claude Code

…ndering

The aeven preset ships procedures/x-post.md, recorded live from drafts
on x.com (nothing posted): threads for the 280-character limit, the
link card versus media, up to 20 mixed media, polls, reply settings,
disclosures, scheduling, drafts, and both composer generations.

A sidebar browser guest in a hidden or covered window was background
throttled and drew no frames, so a menu or dialog the agent closed
never finished closing and its invisible backdrop took the next click;
captures timed out the same way. The guest now keeps throttling off
while an engine operation drives it and for a minute after the last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@olibaron olibaron added area/web Browser and Electron graphical interfaces kind/feature Adds or intentionally changes behavior. skip-ci Merge without starting the CI lanes labels Nov 24, 2026
@olibaron
olibaron merged commit 48f087f into main Nov 24, 2026
5 checks passed
@olibaron
olibaron deleted the fix/x-procedure-guest-throttling branch November 24, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/web Browser and Electron graphical interfaces kind/feature Adds or intentionally changes behavior. skip-ci Merge without starting the CI lanes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant