Skip to content

feat(context): recognize foreground app and browser input scenes - #1507

Open
appergb wants to merge 7 commits into
betafrom
appergb/delivery-p5-input-scenes
Open

appergb wants to merge 7 commits into
betafrom
appergb/delivery-p5-input-scenes

Conversation

@appergb

@appergb appergb commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Recognize foreground applications, including Cursor and Orca, and distinguish supported browser input scenes without overriding the selected style. Bind optional Ask browser references to the original frozen target and the invocation's initial authorization epoch; reject stale grants, changed targets, missing observations, and ambiguous structures with conservative fallback.

Browser context is limited to explicitly authorized origin/path metadata and static input-scene data. Page bodies and task excerpts are not implemented, and browser compatibility has not been verified on devices. Preserve the merged selection, clipboard, and uncertain-write behavior; this is incremental integration, not completion of the full input-context feature or browser navigation.

Validation:

  • Passed source contracts for history originals, capsule menus, skip-auto, shared backend wiring, and the Harmony IPC audit.
  • Parsed all 26 changed Rust files, checked the four-commit patch equivalence, and applied the iOS Core patch successfully in an isolated copy.
  • Rust execution, host type/link checks, model behavior, browser observations, and device acceptance remain pending. Existing CI is unchanged; follow up on actual P5 test execution on the same merge preview, since no-run checks are compile evidence only.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T22:01:15.314646Z 901383d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7706a770e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

conversation_id: request.conversation_id,
turn_id: Uuid::new_v4(),
};
self.0.deps.context.begin_turn(key);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bind browser context only after the turn is admitted

If preparation or model initialization fails, this call has already assigned the invocation's browser reference to a turn that never gets submitted. Retrying creates a different turn key, causing DesktopContext::begin_turn to permanently remove that reference because source.turn != Some(key). Consequently, a recoverable submission failure silently disables browser context for the subsequent successful attempt, even with unchanged permissions and target. Move the binding past the fallible preparation and admission checks so rejected attempts do not consume the invocation's reference.

Useful? React with 👍 / 👎.

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