Skip to content

fix(extensions): preserve command arguments through forms - #10527

Merged
jbg merged 3 commits into
mainfrom
jbg/security-extension-argv-roundtrip
Jul 21, 2026
Merged

fix(extensions): preserve command arguments through forms#10527
jbg merged 3 commits into
mainfrom
jbg/security-extension-argv-roundtrip

Conversation

@jbg

@jbg jbg commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • serialize extension commands so every argument survives the settings-form round trip unchanged
  • parse the command field as argv text instead of interpreting shell operators, globs, comments, or variable syntax
  • preserve Windows paths and implement even/odd backslash-run handling before quotes
  • cover the deeplink -"c" regression, metacharacters, empty and multiline arguments, Unicode, UNC paths, and quoted paths ending in a backslash

Verification

  • pnpm exec vitest run src/components/settings/extensions/utils.test.ts (46 passed)
  • pnpm run typecheck
  • pnpm test -- --run (576 passed)
  • pnpm exec eslint src/components/settings/extensions/utils.ts src/components/settings/extensions/utils.test.ts --max-warnings 0 --no-warn-ignored
  • independent read-only security challenge, including 16,525 generated round trips and Windows backslash runs from one through six, found no remaining blocker

Addresses project-loupe/audit-goose#182.

This finding was discovered by Project Loupe.

@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: 8062dfaf6f

ℹ️ 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".

Comment thread ui/desktop/src/components/settings/extensions/utils.ts Outdated
@jbg
jbg requested review from lifeizhou-ap and michaelneale July 17, 2026 10:52
@lifeizhou-ap
lifeizhou-ap enabled auto-merge July 20, 2026 02:43
@lifeizhou-ap
lifeizhou-ap disabled auto-merge July 20, 2026 02:43

@lifeizhou-ap lifeizhou-ap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved. added an extra commit to clean up unused npm package

@jbg
jbg merged commit 29af64a into main Jul 21, 2026
34 of 36 checks passed
@jbg
jbg deleted the jbg/security-extension-argv-roundtrip branch July 21, 2026 12:15
michaelneale added a commit that referenced this pull request Jul 22, 2026
* origin/main:
  fix(ui): clear stale pending ACP connection after terminal recovery failure (#10552)
  Make provider smoke tests faster and more reliable (#10605)
  fix(acp): confirm pending steer message on queuedSteer notification (#10532)
  chore(deps): bump body-parser from 1.20.5 to 1.20.6 in /documentation (#10601)
  chore(deps): bump webpack-dev-server from 5.2.5 to 5.2.6 in /documentation (#10593)
  feat(compaction): structured summary output with template rendering (#10471)
  feat(skills): allow disabling built-in skills (#10600)
  fix: apply hermit env directly in node shims so a fish login shell doesn't break MCP startup (#10028)
  chore(release): bump version to 1.44.0 (minor) (#10597)
  fix(extensions): preserve command arguments through forms (#10527)
  fix(permissions): enforce manual approval for code mode (#10528)
  fix(apps): confine app file operations (#10481)
  fix(local-inference): preserve featured model size on delete and backfill missing sizes (#10422)
  refactor(acp): extract tool call handling from server (#10574)
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.

2 participants