Repository navigation
feat(browser): let agents choose profiles and preserve Fill - #315
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
c83ea9f to
aa05431
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aa054310e0
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Add profile discovery and explicit profile selection without changing the default or an existing tab's cookie jar. Keep the configured viewport on agent-created tabs, including Fill. Carry-Group: incubator Carry-Observation: Profile selection and viewport preservation share the desktop automation open path and ship together as one browser workflow feature. Co-Authored-By: Code <[email protected]>
Allow the LastCode desktop schemes to negotiate browser API requests alongside the existing T3 Code schemes. Cover development-mode preflight and GET requests, including rejection of unrelated origins. Carry-Group: incubator Carry-Observation: Isolated desktop verification of agent browser profiles exposed the missing LastCode renderer origins. Co-Authored-By: Code <[email protected]>
Give preview_profiles the browser lifecycle labels and summary used by the shared tool catalog. Carry-Group: incubator Carry-Observation: Profile discovery is part of the agent browser profile feature and must be recognized by the shared tool presentation catalog. Co-Authored-By: Code <[email protected]>
Advertise profile selection through an optional host flag while keeping the protocol-2 operation list stable. Cover older-server registration decoding and profile-capability routing. Carry-Group: incubator Carry-Observation: Profile selection changes the desktop automation registration shared by existing browser operations, so its capability must preserve older server registration. Co-Authored-By: Code <[email protected]>
The renderer uses the stable protocol-2 advertisement, so the full request operation list is only used inside its contract module. Carry-Group: incubator Carry-Observation: Profile capability negotiation separates the stable advertisement from the internal request operation list. Co-Authored-By: Code <[email protected]>
bc934c4 to
0cd31c2
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
) Background browser QA could stall on a hidden-tab capture, disconnect unrelated automation, or require opening the owning thread before its tab existed. Saved QA handoffs also stopped being recoverable after their 24-hour process lease and could lose browser authentication before a person returned. This keeps browser hosting subscribed outside chat views, acquires bounded native rendering surfaces, measures the applied viewport, and cancels expired work without replaying mutations or evicting unrelated hosts. Retained handoffs now outlive their processes: opening the saved link or panel restores the process and renews opted-in T3 development browser access. Healthy open forms are preserved. QA guidance selects ordinary and authenticated profiles explicitly and prepares manual QA without requesting a review window. Fixes #287. Named profile selection itself was delivered in #315; this completes its background reliability and evidence-upload workflow. Validation: - Hidden ordinary Electron window: real screenshots at 390×844 CSS pixels, native screencast frame/ACK/stop, file input and file chooser upload, isolated profile cookies, and recovery after an injected capture stall. - Integrated web client: live streamed page and reopening an existing handoff without a duplicate tab or reload. - Focused server, native, hosting, client, and instruction tests; server/contracts/desktop/web/mobile typechecks; independent implementation review and recheck. - Before: a screenshot timeout stranded subsequent evaluation; resize reported 1280×800 when page metrics were 390×844. After: native metrics and pixels agree and the same/other tab remain usable after cancellation. OS-minimized behavior is not claimed by the hidden-window fixture. Native hidden-window capture (390×844 CSS pixels at 2× device scale): <img width="390" alt="Native browser fixture with verified mobile viewport" src="https://github.com/user-attachments/assets/259f4c79-8a69-495f-8d69-348d42838cdb" /> Upstream provenance (adapted, with additional native rendering, cancellation, and epoch fencing fixes): - https://redirect.github.com/pingdotgg/t3code/pull/16941 — pinned head `f88dc5fb4c6b91bd5715d3aacf5f931bb1fba6b9`. - https://redirect.github.com/pingdotgg/t3code/pull/16620 — pinned head `1722a7ae9060883d71d3ba06872c54076dec6bf1`. The guarded merge command also accepts `--skip-checkpoint` so an explicitly deferred checkpoint is not requested after merging; CI, review, and merge guards remain intact. No package build, installation, or restart is part of this delivery. Implemented with GPT-6-Astra and GPT-6.1-Sol through the Codex harness; Luna agents audited code/history/guidance, and Astra independently reviewed the implementation. Carry-Source-Ref: refs/lastcode/carry-sources/pr-325/1aecc826d8637166ed879ebeac1eccca786a47ff Carry-Source-Base: 804ff49 Carry-Source-Head: 1aecc82
## Problem Two Incubator carries put LastCode behavior in upstream HTTP code, which gets in the way of replaying upstream changes. This PR re-seats both. Both behaviors stay, because upstream has no equivalent. - **Desktop renderer origins:** this conflict reproduced when upstream extracted the origin list from the main HTTP module. - **Managed preview media:** the upstream file-level trials merged this hunk cleanly. ## Change - **Managed preview media** ([source commit](0e5c870)): - The signed asset dispatcher now hands off to the existing fork-owned module immediately after asset resolution. - The module now handles typed failures itself, returning the same private, empty 502. It also accepts the request method directly. - **Renderer origins** ([source PR](#315)): LastCode's production and development origins are now derived in the fork-owned desktop distribution module. They're spread into the allowlist shared by dev API CORS and cookie auth. - **Tests:** - Desktop CORS cases moved out of the upstream test file into `http.lastcode.test.ts`. - Existing managed media tests remain. - A new case covers preview listener failure. ## Verification - **Focused tests:** 136 passed, with one existing skip. - **Checks:** changed-file checks and Quick CI passed. - **Replay:** the three touched upstream-owned files merged cleanly against the checked upstream `main`. This was a file-only replay. Local review: 1 round with GPT-6.1 Terra (xhigh) at 2729dfb, approved. Model: GPT-6.2 Sol. Harness: Codex. Carry-Source-Ref: refs/lastcode/carry-sources/pr-924/2729dfb8061cdb9f787676baea68d439f7e6af7b Carry-Source-Base: 88df3d5 Carry-Source-Head: 2729dfb
Agents currently have to use the default browser profile for signed-in tasks, and opening a tab overrides Fill with a fixed 1280×800 viewport.
Add
preview_profilesand explicitprofileName/profileIdselection topreview_open, with returned profile identity and helpful errors for missing, ambiguous, or mismatched profiles. Tabs retain their cookie jars, ordinary tabs keep the configured default, and new tabs preserve the configured viewport. Older assigned desktops fail explicit selection instead of ignoring it. Profile support is advertised separately so updated desktops retain ordinary browser automation with older servers. Also allow the existing LastCode desktop renderer schemes to negotiate development API requests.Validation:
Implemented and reviewed with GPT-6.1-Sol through the Codex harness.