mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Hide approved Guardian assessments from TUI history (#38032)
## What changed - Silently complete approved Guardian assessments after clearing their live review status, instead of adding an approval entry to conversation history. - Continue rendering denied and timed-out assessments in history. ## Testing - Update TUI snapshots to verify that approved command and permission-request assessments add no history entry and that the status returns to `Working`. GitOrigin-RevId: 32df1f2e3d4e23f0b792dcfdfcf7fbe95f33c703
This commit is contained in:
1 parent
1dac3d9ca0
commit
8f4a2c99dd
5 files changed
+15
-45
No files matched your search
@@ -310,16 +310,6 @@ pub fn new_guardian_denied_action_request(summary: String) -> Box<dyn HistoryCel
|
||||
Box::new(PrefixedWrappedHistoryCell::new(line, "✗ ".red(), " "))
|
||||
}
|
||||
|
||||
pub fn new_guardian_approved_action_request(summary: String) -> Box<dyn HistoryCell> {
|
||||
let line = Line::from(vec![
|
||||
"Request ".into(),
|
||||
"approved".bold(),
|
||||
" for ".into(),
|
||||
Span::from(summary).dim(),
|
||||
]);
|
||||
Box::new(PrefixedWrappedHistoryCell::new(line, "✔ ".green(), " "))
|
||||
}
|
||||
|
||||
pub fn new_guardian_timed_out_patch_request(files: Vec<String>) -> Box<dyn HistoryCell> {
|
||||
let mut summary = vec![
|
||||
"Review ".into(),
|
||||
|
||||
Reference in new issue
Block a user