一键导入
window-style-contract
Keep avatar window chrome and topmost behavior driven by one explicit rule.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Keep avatar window chrome and topmost behavior driven by one explicit rule.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
{what this skill teaches agents}
Validate Squad avatar regressions with alias-resolution probes and source assertions around reset paths.
Use stable agent identity fields for metadata joins and reserve instance ids for runtime bookkeeping.
Render live sub-agent badges from resolved identity, current model, and active work state.
Protect persisted voice selections when async voice lists reload or the active TTS engine changes.
Replay extension state only after the webview page declares its own ready flag.
| name | window-style-contract |
| description | Keep avatar window chrome and topmost behavior driven by one explicit rule. |
| domain | platform, extension-ui |
| confidence | high |
| source | earned |
Use this when changing how the Copilot avatar native window is created or when adding window-style settings. The failure mode here is hidden coupling: the visible frame/decorations say one thing, while an unconditional topmost flag silently says another.
alwaysOnTop from transparentWindow in the extension layer before spawning the native window.decorations and topmost state are reapplied together..github/extensions/copilot-avatar/main.mjs should use a helper like shouldKeepAvatarAlwaysOnTop(settings) and apply it during initial CopilotWebview construction plus later saveSettings() updates..github/extensions/copilot-avatar/lib/webview-child.mjs should keep decorations: !transparent and only call setAlwaysOnTop(true) when the extension explicitly requested it.alwaysOnTop: true unconditionally while also letting transparency control whether the window has a frame.