Environment: anna.partners dashboard, Chrome 156 on Windows 11, @anna-ai/cli v0.1.63, desktop form factor, App ID 748. Re-tested on 2026-11-14 with the same result.
What happens
anna.window.resize({ w, h }) sizes the whole window, including Anna’s title bar and border. But inside the iframe the only size you can measure is the content size (innerWidth / innerHeight).
Measured:
resize({ w: 720, h: 580 })resolves{ w: 720, h: 580 }.- The iframe then reports
innerWidth × innerHeight = 718 × 542. - So the chrome is 2 px wide and 38 px tall.
Why it matters
A common pattern is “grow the window for a wide screen, then restore it”: save innerWidth × innerHeight, resize larger, later resize(saved). Every round trip loses 38 px of height (and 2 px of width). In my App each game played made the window visibly shorter: 682 → 644 → …
Steps to reproduce
const before = { w: innerWidth, h: innerHeight };await anna.window.resize({ w: 720, h: 580 });await anna.window.resize(before);innerHeightis nowbefore.h - 38.
Workaround
Measure the chrome while the window is at a size you set yourself, then add it back:
const chrome = { w: 720 - innerWidth, h: 580 - innerHeight }; // right after resize(720×580)
anna.window.resize({ w: before.w + chrome.w, h: before.h + chrome.h });
Suggestions
- Document whether
w/hare outer or content dimensions. - Either accept a content size (e.g.
resize({ w, h, content: true })), or expose the chrome insets inruntime.geometry/ theresizeresult, so Apps don’t have to infer them.