Skip to content

Feature/cowork sandbox support#81

Open
mosi0815 wants to merge 7 commits into
patrickjaja:masterfrom
mosi0815:feature/cowork-sandbox-support
Open

Feature/cowork sandbox support#81
mosi0815 wants to merge 7 commits into
patrickjaja:masterfrom
mosi0815:feature/cowork-sandbox-support

Conversation

@mosi0815
Copy link
Copy Markdown
Contributor

@mosi0815 mosi0815 commented May 7, 2026

Looks good to me. Detects the new sandbox mode and patches the tool descriptions accordingly.
And i disabled host loop mode again. couldnt reproduce any problem with it. Neither in kvm, sandbox or native mode.

mosi0815 added 7 commits May 7, 2026 17:05
- fix_cowork_sandbox_refs.nim: add patches E/F/G/H to omit sandbox/VM
  wording (path mapping, "files in sandbox", "Linux env boots in
  background", skill-scripts VM path) when running in native cowork mode
- fix_computer_use_linux.nim: gate allowlist/screenshot wording on
  !__cuKwinMode so kwin-portal-bridge mode keeps upstream text; rework
  14a "Separate filesystems" to flip only when native (no KVM, no bwrap)
- fix_dispatch_linux.nim: comment out sessions-bridge gate + remote
  session control bypass (now EXPECTED_PATCHES=2)
- fix_cowork_linux.nim: comment out Patch F (present_files host outputs
  dir) — EXPECTED_PATCHES=8
- Remove fix_cowork_first_bash.nim and fix_imagine_linux.nim
- launcher: add --enable-experimental-web-platform-features for Bluetooth
- bump .electron-version 42.0.0 → 42.0.1
Conflict resolution:
- patches/fix_cowork_first_bash.nim: deleted (per branch WIP intent)
- patches/fix_imagine_linux.nim:     deleted (per branch WIP intent)
- patches/fix_cowork_sandbox_refs.nim: combined master's v1.7196.1
  patNew/patOld dual-pattern handling with the branch's 3-way
  KVM/sandbox/native ternary; both code paths now produce 3-way output.
- patches/fix_dispatch_linux.nim: kept branch's intentionally
  commented-out Pt() flag overrides block; refreshed the dead
  jrPattern inside the comment with master's v1.7196 telemetry-aware
  regex so future revival sees the current pattern.

Compiles cleanly (patches/make produces fix_cowork_sandbox_refs and
fix_dispatch_linux binaries).
Both sub-patches anchored on hardcoded minified template-literal
variable names that shifted in v1.7196.1:

  E (sandbox-file warning): ${AA} → ${eA} (second variant only;
    first variant ${e} is unchanged).
  F (path-mapping block):   ${Ae}${EA}${W} → ${uA}${W}${IA};
                            ${dA},${nA}    → ${nA},${lA}.

Convert both from literal-substring matching to regex with [\w$]+
wildcards so future minification renames don't break them. The
replacement still preserves the original block verbatim (via m.match)
in kvm/sandbox modes and only substitutes the native-mode wording.

Verified end-to-end: ./scripts/build-local.sh against v1.7196.3 with
all 8 sub-patches now applying.
…box-support

# Conflicts:
#	js/cowork_mode_preamble.js
#	patches/fix_cowork_linux.nim
#	patches/fix_imagine_linux.nim
#	scripts/claude-desktop-launcher.sh
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