Repository navigation
feat(extensions): add host activity, managed window, and web tab icon capabilities - #1332
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds three general-purpose Host extension capabilities inspired by #1312, scoped strictly to Host/Shell/Web infrastructure (without bundling any concrete extension):
packages/shared-contracts,packages/host-runtime,packages/extension-backend):ctx.activity?.read()(ExtensionActivitySnapshot) andctx.harnesses?.describe(id)(ExtensionHarnessPresentation).activity.read()with automatic teardown when consumer backends stop or Host shuts down; skipped in SSH-hosted mode; metadata/rename updates never trigger cold history reads (app-server-host.projection-3.test.tssnapshotReads === 0preserved).deferredCompletion), retries transient snapshot read failures ([50, 150, 400]ms), and isolates IPC concurrency channels (settings: 4,activity: 4,harness: 16,window: 4).apps/desktop-shell/src-tauri,crates/launcher,packages/extension-backend):ctx.windows?.{available, clickThroughSupported, open, close, showHost}and injectedwindow.codexhostWindow.{clickThroughSupported, startDragging, setHitRegions}.WAYLAND_DISPLAY/XDG_SESSION_TYPE=wayland), disables broken global-cursor click-through polling, exposesclickThroughSupported: false, and avoids readingouter_size()before window show on Linux.packages/shared-contracts,apps/web-ui):WebExtensionApi.tabIcon?.set(pngDataUrl | null)with<128 KiBPNG data URL validation, multi-extension ownership, and automatic restore on hide/release/uninstall.UI Demo
No visual changes: adds Host extension backend services, managed native window support in Desktop Shell, and Web
tabIconAPI without bundling any extension UI.Validation
cargo fmt -- --check(crates/launcher,apps/desktop-shell/src-tauri): passednpx tsc -b packages/shared-contracts packages/extension-backend packages/host-runtime: passednode tools/check-boundaries.mjs: 0 violationsextension-activity.test.ts,app-server-host.projection-3.test.ts,services.test.ts,windows.test.ts,tab-icon.test.mjs): 59/59 passedpackages/extension-backend/test/process.test.ts: 4/4 passedcargo test --manifest-path crates/launcher/Cargo.toml: 162 passed, 0 failedcargo test --manifest-path apps/desktop-shell/src-tauri/Cargo.toml: 40 passed, 0 failedRefs #1312