Skip to content

feat: wire bounded selection alternatives to host AI lifecycle - #15

Merged
AlexMikhalev merged 4 commits into
mainfrom
codex/ai-selection-bridge-20261015
Oct 15, 2026
Merged

AlexMikhalev merged 4 commits into
mainfrom
codex/ai-selection-bridge-20261015

Conversation

@AlexMikhalev

Copy link
Copy Markdown
Contributor

Connect the extension's real AI service lifecycle to explicit selection-alternative controls. Requests are opt-in, bounded to the selected text and its paragraph (2,000 code points), and require a qualified host/provider. Returned suggestions remain a preview until explicit acceptance; acceptance uses the existing Rust alternative transaction and synonyms:: graph/history behavior.

The released SDK exposes no supported host-version identity. The qualification list is therefore empty and the native controls stay disabled. This change sends no native provider requests and makes no external-AI qualification claim. It prepares the supported service connection and keeps local KG suggestions available.

The private frame boundary rejects changed source, role, selection and owner identities. Cancellation discards a late result while retaining the single-operation reservation; acceptance waits for the actual parent acknowledgement. The manifest adds only the approved AI permission, with package tests enforcing it.

Independent validation: strict TypeScript/SDK build, 32 source tests, 16 package tests, 33 focused browser tests plus two independent real regressions pass. Tests use actual Rust, IndexedDB and saved files; provider-seam values are labeled fixtures, not live model outputs. Additional checks prove undo/redo/save/reopen and refusal after actual recovery-store closure. After merging the qualified admission base, all 15 reviewed file hashes remain unchanged and 38 integrated browser checks pass.

Native three-OS/all-41 acceptance and a genuinely configured host/provider remain separate gates. This PR does not publish a package.

@AlexMikhalev
AlexMikhalev merged commit 8d81539 into main Oct 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant