Repository navigation
feat(browser): add acting, dialog, confined upload/drop, network body, and profiling RPC executors - #386
Merged
Conversation
…profiling executors (PR 3 local WIP)
…act-files-profile # Conflicts: # apps/browser-engine/src/engine.rs # apps/browser-engine/src/main.rs # apps/browser-engine/src/wire.rs # apps/desktop/src/surfaces/browser/rpc/exec/capture.rs # apps/desktop/src/surfaces/browser/rpc/exec/mod.rs # apps/desktop/src/surfaces/browser/rpc/exec/nav.rs # apps/desktop/src/surfaces/browser/rpc/mod.rs # apps/desktop/src/surfaces/browser/rpc/session.rs # crates/browser-pane/src/client.rs # crates/browser-pane/src/find.rs # crates/browser-pane/src/machine.rs # crates/browser-pane/src/protocol.rs
…act-files-profile # Conflicts: # apps/browser-engine/src/engine.rs # apps/browser-engine/src/wire.rs # crates/browser-pane/src/client.rs # crates/browser-pane/src/machine.rs # crates/browser-pane/src/protocol.rs
…act-files-profile # Conflicts: # apps/browser-engine/src/cef_runtime.rs # apps/browser-engine/src/downloads.rs # apps/browser-engine/src/engine.rs # apps/browser-engine/src/wire.rs # apps/desktop/src/surfaces/browser/rpc/session.rs # crates/browser-pane/src/machine.rs # crates/browser-pane/src/protocol.rs # docs/upstream-sync/ledger.json
…act-files-profile # Conflicts: # crates/browser-pane/src/client.rs # docs/upstream-sync/ledger.json
|
PR test build retired — merged into |
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 the remaining acting, JavaScript dialog, confined upload/drop, network response body, and profiling executors for
experimental.browserv4, ported from officialanomalyco/opencodeatdb2d889c0e24daf7b34c8dede641fb01fcd02c00.Also updates
docs/upstream-sync/ledger.json: marksUP-095-PROMPT-GATEas"have it"(merged in#325d31feca9) and refreshesUP-095-TOOLS.Ported operations (official
db2d889c)apps/desktop/src/surfaces/browser/rpc/exec/input.rs):click,hover,drag,fill(text + structured date/time/month/week/datetime-local),fill_form,select,check(checkbox + radio + post-click state check),press(clipboard/native-menu shortcuts refused), andscroll(packages/plugin-browser/src/rpc.ts:379-441,packages/gui-plugins/src/browser/chromium.ts). All CDP calls go throughsend_typed_cdp/send_typed_cdp_in_framecarrying#350'sframe_id, so#350's engine frame authority keepsInput.*refused on any tab with extension frames.exec/dialog.rs):dialog(get/accept/dismiss+promptText) using#268'sDialogGate(BrowserHost::answer_dialog) with legacy CDP fallback (rpc.ts:498-506,chromium.ts).exec/files.rs,apps/browser-engine/src/agent.rs,wire.rs,protocol.rs,find.rs):files.uploadandfiles.dropstage server-transferred bytes under marker-guarded<profile>/opencode-page-uploads/<tab>/(<= 8 files, <= 5 MiB total, symlink-free canonical check in engine), refuse extension surfaces (classify_surface != Clean) and Guard 1a inherited-permission sites, and clean up on tab close / engine shutdown (rpc.ts:507-518,chromium.ts).exec/capture.rs,session.rs):ensure_tab_cdpenablesLog.enableandNetwork.enable;network.getfetches response bodies asynchronously viaNetwork.getResponseBodywhile redactingAuthorization/Cookie/Set-Cookie(rpc.ts:543-573).exec/profile.rs,crates/browser-pane/src/tools/profiling.rs):trace.start,trace.stop,trace.analyze,cpu.start,cpu.stop,cpu.analyze,heap.snapshot,heap.summary,heap.query,heap.object,heap.compare(dual-file authorization target inexec/read.rs), and truthfulunsupportedforlighthouse(rpc.ts:574-664,packages/gui-plugins/src/browser/profiling.ts,analysis.ts). Trace/heap buffers are bounded (250k events / 64 MiB raw, 5 MiB gzip transfer).Recorded difference (
notes/upstream-sync/ours.md)heap.snapshot,cpu.*,trace.*) are refused by#350's engine ledger whenever browser extensions are active (extensions_active == true), stricter than official (profiling.ts).Engine revision
apps/browser-engine/and the wire (UploadFiles,DropFiles,Ready.agent_files), andopencode-browser-enginebuilt locally with 0 warnings.ENGINE_REVISIONis NOT bumped: publishedstable.jsonis at156.0.26-2(rev 2) anddevis already ahead atENGINE_REVISION = 3.Checks
cargo check -p opencode-desktop --locked: pass (0 warnings).cargo build --manifest-path apps/browser-engine/Cargo.toml --bin opencode-browser-engine: pass (0 warnings).scripts/guardrails.ps1: 5/5 passed.proof/browser-tools/pr3/run-pr3-proof.ts(will run asynchronously after merge per TEMPO 2).