core-agent-ide/codex-rs/protocol/src
JUAN DAVID SALAS CAMARGO f815fa14ea
Fix execpolicy parsing for multiline quoted args (#9565)
## What
Fix bash command parsing to accept double-quoted strings that contain
literal newlines so execpolicy can match allow rules.

## Why
Allow rules like [git, commit] should still match when commit messages
include a newline in a quoted argument; the parser currently rejects
these strings and falls back to the outer shell invocation.

## How
- Validate double-quoted strings by ensuring all named children are
string_content and then stripping the outer quotes from the raw node
text so embedded newlines are preserved.
- Reuse the helper for concatenated arguments.
- Ensure large SI suffix formatting uses the caller-provided locale
formatter for grouping.
- Add coverage for newline-containing quoted arguments.

Fixes #9541.

## Tests
- cargo test -p codex-core
- just fix -p codex-core
- cargo test -p codex-protocol
- just fix -p codex-protocol
- cargo test --all-features
2026-01-22 22:16:53 -08:00
..
prompts fix(core) Preserve base_instructions in SessionMeta (#9427) 2026-01-19 21:59:36 -08:00
account.rs fix: move account struct to app-server-protocol and use camelCase (#5829) 2025-10-27 14:06:13 -07:00
approvals.rs Removed experimental "command risk assessment" feature (#7799) 2025-12-10 09:48:11 -08:00
config_types.rs Add tui.experimental_mode setting (#9656) 2026-01-22 05:27:57 +00:00
custom_prompts.rs [app-server] remove serde(skip_serializing_if = "Option::is_none") annotations (#5939) 2025-10-30 18:18:53 +00:00
items.rs Add total (non-partial) TextElement placeholder accessors (#9545) 2026-01-20 14:04:11 -08:00
lib.rs Migrate tui to use UserTurn (#9497) 2026-01-19 13:40:39 -08:00
message_history.rs Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
models.rs feat(core) update Personality on turn (#9644) 2026-01-22 12:04:23 -08:00
num_format.rs Fix execpolicy parsing for multiline quoted args (#9565) 2026-01-22 22:16:53 -08:00
openai_models.rs feat(core) ModelInfo.model_instructions_template (#9597) 2026-01-21 18:11:18 -08:00
parse_command.rs [app-server] remove serde(skip_serializing_if = "Option::is_none") annotations (#5939) 2025-10-30 18:18:53 +00:00
plan_tool.rs [app-server] remove serde(skip_serializing_if = "Option::is_none") annotations (#5939) 2025-10-30 18:18:53 +00:00
protocol.rs feat(core) update Personality on turn (#9644) 2026-01-22 12:04:23 -08:00
request_user_input.rs Chore: update plan mode output in prompt (#9592) 2026-01-21 14:12:18 -08:00
thread_id.rs Migrate tui to use UserTurn (#9497) 2026-01-19 13:40:39 -08:00
user_input.rs Prompt Expansion: Preserve Text Elements (#9518) 2026-01-20 18:30:20 -08:00