Commit Graph
16 Commits
Author SHA1 Message Date
James Peter 0a5b159a68 Refresh codex-rs mirror to upstream/main 2026-02-05 11:41:10 +10:00
James Peter e805caad12 Refresh codex-rs mirror to upstream/main 2026-02-01 22:42:49 +10:00
James Peter 38e1f22ea5 Refresh codex-rs mirror to upstream/main 2026-01-30 15:21:20 +10:00
James Peter 3f307f1d87 Refresh codex-rs mirror to upstream/main 2026-01-27 08:38:43 +10:00
James Peter 1ac487bebe Refresh codex-rs mirror to upstream/main 2026-01-22 08:56:06 +10:00
James Peter e1220eb5c5 Refresh codex-rs mirror to upstream/main 2026-01-17 10:21:37 +10:00
James Peter f3bdb14c2d Refresh codex-rs mirror to upstream/main 2025-12-11 12:17:57 +10:00
James Peter aafb3b059b Refresh codex-rs mirror to upstream/main 2025-12-10 07:42:54 +10:00
jif-oaiandGitHub 19916578e2 fix: parallel tool call instruction injection (#6893) 2025-11-19 11:01:57 +00:00
jif-oaiandGitHub 4ed73d083c feat: enable parallel tool calls (#6796) 2025-11-18 17:10:14 +00:00
Ahmed IbrahimandGitHub b1b28d95a8 Improve compact (#6692)
This PR does the following:
- Add compact prefix to the summary
- Change the compaction prompt
- Allow multiple compaction for long running tasks
- Filter out summary messages on the following compaction

Considerations:
- Filtering out the summary message isn't the most clean
- Theoretically, we can end up in infinite compaction loop if the user
messages > compaction limit . However, that's not possible in today's
code because we have hard cap on user messages.
- We need to address having multiple user messages because it confuses
the model.

Testing:
- Making sure that after compact we always end up with one user message
(task) and one summary, even on multiple compaction.
2025-11-15 07:17:51 +00:00
Eric TrautandGitHub dfd776e912 Changes to sandbox command assessment feature based on initial experiment feedback (#6091)
* Removed sandbox risk categories; feedback indicates that these are not
that useful and "less is more"
* Tweaked the assessment prompt to generate terser answers
* Fixed bug in orchestrator that prevents this feature from being
exposed in the extension
2025-11-01 14:52:23 -07:00
946369c308 feat: compactor 2 (#6027)
Co-authored-by: pakrym-oai <[email protected]>
2025-10-31 14:27:08 -07:00
Ahmed IbrahimandGitHub 67f3b3b120 Delegate review to codex instance (#5572)
In this PR, I am exploring migrating task kind to an invocation of
Codex. The main reason would be getting rid off multiple
`ConversationHistory` state and streamlining our context/history
management.

This approach depends on opening a channel between the sub-codex and
codex. This channel is responsible for forwarding `interactive`
(`approvals`) and `non-interactive` events. The `task` is responsible
for handling those events.

This opens the door for implementing `codex as a tool`, replacing
`compact` and `review`, and potentially subagents.

One consideration is this code is very similar to `app-server` specially
in the approval part. If in the future we wanted an interactive
`sub-codex` we should consider using `codex-mcp`
2025-10-29 21:04:25 +00:00
Eric TrautandGitHub f9a8f25583 Added model summary and risk assessment for commands that violate sandbox policy (#5536)
This PR adds support for a model-based summary and risk assessment for
commands that violate the sandbox policy and require user approval. This
aids the user in evaluating whether the command should be approved.

The feature works by taking a failed command and passing it back to the
model and asking it to summarize the command, give it a risk level (low,
medium, high) and a risk category (e.g. "data deletion" or "data
exfiltration"). It uses a new conversation thread so the context in the
existing thread doesn't influence the answer. If the call to the model
fails or takes longer than 5 seconds, it falls back to the current
behavior.

For now, this is an experimental feature and is gated by a config key
`experimental_sandbox_command_assessment`.

Here is a screen shot of the approval prompt showing the risk assessment
and summary.

<img width="723" height="282" alt="image"
src="https://github.com/user-attachments/assets/4597dd7c-d5a0-4e9f-9d13-414bd082fd6b"
/>
2025-10-24 15:23:44 -07:00
jif-oaiandGitHub 8b4350ae57 feat: context compaction (#3446)
## Compact feature:
1. Stops the model when the context window become too large
2. Add a user turn, asking for the model to summarize
3. Build a bridge that contains all the previous user message + the
summary. Rendered from a template
4. Start sampling again from a clean conversation with only that bridge
2025-09-12 13:07:10 -07:00