Commit aeca799
feat(config): User-defined working messages list (#466)
## Summary
🤖 Generated with [Nori](https://noriagentic.com/)
- Adds `[tui].custom_working_message_list` to home Nori config so users
can supply their own array of working messages, overriding the builtin
whimsical pool while keeping the existing `custom_working_messages`
on/off toggle from #464.
- Consolidates status-header selection through a single
`pick_status_message(bool, &[String])` helper, fixing a regression where
`on_task_started` ignored the toggle for any task after the first.
- `/config` menu still only edits the boolean; the user list is
TOML-only. The menu entry's description now advertises when a custom
list is active so toggling does not surprise the user.
## Behavior
- `custom_working_messages = false` → plain `Working` (existing).
- `custom_working_messages = true` (default), no list → builtin
whimsical rotation (existing).
- `custom_working_messages = true`, `custom_working_message_list =
["foo", "bar"]` → samples from user list (new).
- `custom_working_messages = false`, list set → still plain `Working`
(bool wins).
## Test Plan
- [x] `cargo test -p codex-core --lib custom_working_message` (5 passed)
- [x] `cargo test -p nori-acp --lib test_nori_config` (7 passed)
- [x] All 1219 nori-tui lib tests pass; new tests for widget,
on_task_started bug fix, and picker description verified GREEN.
- [x] `just fix -p codex-core -p nori-acp -p nori-tui` clean.
- [x] `cargo fmt`.
- [ ] Reviewer: confirm `cargo build --bin nori` and `cargo test -p
tui-pty-e2e` pass in CI.
Share Nori with your team: https://www.npmjs.com/package/nori-skillsets
Co-authored-by: Cliff <clifford@tilework.tech>
Co-authored-by: Nori <contact@tilework.tech>1 parent 0299264 commit aeca799
18 files changed
Lines changed: 262 additions & 24 deletions
File tree
- nori-rs
- acp
- src/config
- types
- core
- src/config
- tests
- tui
- src
- bottom_pane
- chatwidget
- tests
- nori
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| |||
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
177 | 187 | | |
178 | 188 | | |
179 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1388 | 1388 | | |
1389 | 1389 | | |
1390 | 1390 | | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1391 | 1396 | | |
1392 | 1397 | | |
1393 | 1398 | | |
| |||
1567 | 1572 | | |
1568 | 1573 | | |
1569 | 1574 | | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1570 | 1580 | | |
1571 | 1581 | | |
1572 | 1582 | | |
| |||
1660 | 1670 | | |
1661 | 1671 | | |
1662 | 1672 | | |
| 1673 | + | |
1663 | 1674 | | |
1664 | 1675 | | |
1665 | 1676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| |||
1269 | 1273 | | |
1270 | 1274 | | |
1271 | 1275 | | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1272 | 1281 | | |
1273 | 1282 | | |
1274 | 1283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
76 | 119 | | |
77 | 120 | | |
78 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| |||
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
| 626 | + | |
625 | 627 | | |
626 | 628 | | |
627 | 629 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
| |||
0 commit comments