mirror of
https://github.com/openai/codex.git
synced 2026-11-23 15:18:14 +00:00
Add configurable hook context spill limits (#34393)
## What changed - Add `additionalContextLimit` to command hook configuration for events that can emit `additionalContext`. - Apply the limit independently to each hook's context before it is sent to the model. Unset values retain the 2,500-token default, while `0` disables spilling for that hook. - Expose configured limits through app-server hook and requirements responses, and show them in the TUI hooks browser. ## Testing - Cover JSON and TOML parsing, discovery and hashing, per-hook spilling behavior, app-server responses, and TUI rendering. GitOrigin-RevId: 55ddc2dbbdf9067dceee3e1968c03617bbf6bcea
This commit is contained in:
1 parent
bd92b056dd
commit
e4836f998d
37 files changed
+679
-85
No files matched your search
@@ -1258,6 +1258,7 @@ approval_policy = "never"
|
||||
timeout_sec: Some(10),
|
||||
r#async: false,
|
||||
status_message: Some("checking".to_string()),
|
||||
additional_context_limit: None,
|
||||
}],
|
||||
}],
|
||||
..Default::default()
|
||||
|
||||
Reference in new issue
Block a user