Repository navigation
fix(antigravity): decode listed working directories before resume - #1179
Merged
Merged
Conversation
Co-authored-by: xxchan <[email protected]>
This was referenced Nov 25, 2026
stamp-build Bot
added a commit
that referenced
this pull request
Nov 25, 2026
## OAR 0.131.0 ### Features - **Per-session `SessionOptions.nativePermissions: "inherit"` on Codex** (#1176, #1178). Adds `SessionOptions.nativePermissions?: "inherit"` so hosts can leave a runtime's own permission, approval, and sandbox settings in charge per session instead of injecting OAR's default bypass flags. On Codex, `"inherit"` omits `-c sandbox_mode=...` (winning over `OAR_CODEX_SANDBOX` for that session) and omits `approvalPolicy` on `thread/start`, `thread/resume`, and `thread/fork`, while keeping OAR's noninteractive decline rule for any approval request that reaches the client. Any unexpected defined value is rejected before spawning with `UnsupportedOptionError("nativePermissions")`, and all other built-in and community runtimes declare `refusedSessionOptions.nativePermissions` until individually verified. Also aligns the Windows Codex native-permissions vendor check with Codex's `readOnly` fallback when Windows sandboxing is disabled. - **DSH per-session stdio and HTTP MCP mounting over bridge stdin** (#1167). Mounts per-session stdio and streamable HTTP MCP servers (including `serveMcpTools`) in memory over DSH's bridge stdin instead of writing credentials to invocation files, removes `refusedSessionOptions.mcpServerCredentials` on DSH, and declares `mcpTransports: ["stdio", "http"]`. ### Fixes - **Codex `thread/resume` and `thread/fork` sandbox override precedence** (#1181). Sends the active `sandbox` mode on Codex `thread/resume` and `thread/fork` when OAR overrides permissions (default bypass or `OAR_CODEX_SANDBOX`), preventing Codex's persisted rollout permission profiles (such as `readOnly`) from overriding CLI `-c sandbox_mode=...`, while omitting RPC `sandbox` under `nativePermissions: "inherit"`, `OAR_CODEX_SANDBOX=inherit`, and host `launchArgs` sandbox overrides. - **Antigravity percent-encoded `session/list` working directory decoding on resume** (#1179, closes #1177). Decodes Antigravity's escaped `file://` URL pathname segments once before the ACP resume directory identity check so non-ASCII, space, punctuation, and literal percent-escaped workspace paths resume accurately while keeping sibling directories distinct, `ResumeCwdError.savedCwd` verbatim, and all other ACP runtimes strictly literal. - **Grok ACP MCP tool output projection** (#1168). Projects non-empty `OkayOutput` (`completed`) and `Error` (`failed`) strings from Grok ACP's `rawOutput` (`type: "MCP"`) into `tool_call_ended.content` when `update.content` is absent, scoped to Grok via an optional `AcpSessionProfile.projectRawToolOutput` hook while keeping `native` verbatim and leaving other ACP runtimes unchanged. - **OpenCode skill discovery bounded to releases with an activation barrier** (#1171). Limits OpenCode v2 one-shot skill discovery to `2.2.7` through `2.3.x` and returns `version_unsupported` (without starting a server) from `2.4.0` onward, where upstream catalog reads can return before plugins finish loading. ### Documentation, CI, and Tests - **Antigravity 1.5.16 ACP baseline, Cursor SDK 1.5.0 skill observer, and daily runtime version checks** (#1169, #1170, #1174, #1175). Advances the Antigravity ACP CI baseline to `1.5.16`, resolves Cursor's test skill observer context factory dynamically for `@cursor/[email protected]+`, and records the 2026-11-23 and 2026-11-24 runtime version checks. Full diff: v0.130.1...v0.131.0 Co-authored-by: Cindy <[email protected]>
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.
Fixes #1177.
Antigravity 1.5.16 reports the saved working directory in
session/listas an escaped file URL pathname. Given sibling directories named小米 projectand%E5%B0%8F%E7%B1%B3%20project, OAR previously allowed the first session to resume when the caller requested the second directory. It also refused the second session in its own directory.The Antigravity ACP profile now decodes each pathname segment once before the existing directory identity check. A malformed pathname, invalid UTF-8, NUL, or an escape that would introduce a platform path separator preserves the entire literal listing. The caller supplies an ordinary filesystem path. On a mismatch,
ResumeCwdError.savedCwdpreserves the runtime's original spelling.The native regression creates a session and completes a prompt in each of the two directories. It verifies that each session refuses its sibling, resumes in its own directory, and reports that directory to the model. Both cases failed on the base commit with agy 1.5.16 and pass with this change. Unit tests also cover Windows drive prefixes, symlink identity, malformed input, punctuation, and literal path comparison for Kimi, Devin and OpenCode.
On Linux the Antigravity vendor suite passed all 21 selected cases and the behavior suite passed all 18 applicable cases. The 16-backend behavior matrix passed with DSH and Factory exercised in a separate run using their CI pins.
CI=1 VITEST_MAX_WORKERS=6 pnpm run checkpassed with 5,690 unit tests and 19 mock behavior cases. Earlier full runs each missed one unrelated timing assertion, first in OpenCode provider auth during simultaneous suites, then in the Claude usage fixture at default parallelism.