[codex] Deduplicate skill load warnings (#26698)

Skill reloads can get noisy when the watcher keeps triggering
`skills/list` and the same invalid `SKILL.md` error comes back each
time.

This keeps the first warning visible, then suppresses repeats while the
same `(path, message)` is still active. If the error clears and later
comes back, or if the message changes, it will show again.

Validation:
- `just fmt`
- `just test -p codex-tui skill_load_warning_state`
This commit is contained in:
xl-openai authored and GitHub committed 2026-06-05 18:37:47 -07:00
1 parent 2f108f9fd9
commit cbac22dabe
6 files changed
+199

No files matched your search

+1
View File
@@ -113,6 +113,7 @@ impl App {
self.initial_history_replay_buffer = None;
self.backtrack = BacktrackState::default();
self.backtrack_render_pending = false;
self.skill_load_warnings.clear();
}
}