Commit 26d200c
authored
feat(channels): narrated progress drafts + activity receipt on the final answer (#103463)
* feat(channels): narrated progress drafts + activity receipt on the final answer
Progress mode replaces raw tool lines with short utility-model narration of
what the agent is doing (streaming.progress.narration, default on, requires
an explicit utilityModel). On Discord the final answer now carries the
-# activity receipt and the working draft is deleted once the answer lands,
so busy channels keep no orphaned tool log above the reply.
Formatting verified remotely via Testbox oxfmt --check (hook bypassed:
no node_modules in this worktree).
* fix(channels): keep narration toggle independent of channel-default stream mode
Discord resolves its own progress default, so the resolver must not re-derive
mode with the generic partial fallback (narration was off for unset config).
* fix(auto-reply): honor status-only command text in narration model input
streaming.progress.commandText: "status" hides raw exec/bash text from the
channel draft; narration input now mirrors that policy so the utility model
never receives more command detail than the draft shows (Codex review P2).
Formatting verified remotely via Testbox oxfmt --check.
* fix(auto-reply): share the draft's command-tool set for narration and regen channel metadata
Reuse isCommandToolName (exec|shell|bash) so narration's commandText policy
matches the draft formatter exactly, and regenerate bundled channel config
metadata for the new streaming.progress.narration key (Codex review round 2).
Gates verified on Testbox: config:channels:check, oxfmt --check, 4 test shards.
* fix(channels): clear stale narration when the narrator stops mid-turn
An empty narration update now falls the draft back to raw tool lines, and the
narrator emits that clear when it disables after consecutive failures or the
per-turn cap, so drafts never pin stale status text (Codex review round 3).
Gates verified on Testbox: oxfmt --check + 4 test shards.
* chore(config): regen bundled channel metadata after rebase onto main
* chore: CI fixups — lint nits, test harness types, docs map, SDK surface budget
Two deliberate public SDK additions (resolveChannelStreamingProgressNarration,
isCommandToolName via the streaming wildcard re-export) bump the pinned
public-surface budgets to current counts (exports 10488, callable 5235).
Gates verified on Testbox: oxfmt, targeted oxlint, docs:map:check,
config:channels:check, check:test-types, 5 test shards.1 parent 4a4a32a commit 26d200c
19 files changed
Lines changed: 1076 additions & 112 deletions
File tree
- docs
- concepts
- gateway
- extensions/discord/src/monitor
- scripts
- src
- auto-reply
- reply
- channels
- config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
260 | 302 | | |
261 | 303 | | |
262 | 304 | | |
| |||
350 | 392 | | |
351 | 393 | | |
352 | 394 | | |
353 | | - | |
| 395 | + | |
354 | 396 | | |
355 | 397 | | |
356 | 398 | | |
| |||
365 | 407 | | |
366 | 408 | | |
367 | 409 | | |
368 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
369 | 418 | | |
370 | 419 | | |
371 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2719 | 2719 | | |
2720 | 2720 | | |
2721 | 2721 | | |
| 2722 | + | |
2722 | 2723 | | |
2723 | 2724 | | |
2724 | 2725 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
82 | 94 | | |
83 | 95 | | |
84 | 96 | | |
| |||
135 | 147 | | |
136 | 148 | | |
137 | 149 | | |
| 150 | + | |
| 151 | + | |
138 | 152 | | |
139 | 153 | | |
140 | 154 | | |
| |||
167 | 181 | | |
168 | 182 | | |
169 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
170 | 187 | | |
171 | 188 | | |
172 | 189 | | |
| |||
Lines changed: 88 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
741 | 747 | | |
742 | | - | |
| 748 | + | |
743 | 749 | | |
| 750 | + | |
744 | 751 | | |
745 | 752 | | |
746 | 753 | | |
| |||
2201 | 2208 | | |
2202 | 2209 | | |
2203 | 2210 | | |
2204 | | - | |
2205 | | - | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
2206 | 2271 | | |
2207 | 2272 | | |
2208 | 2273 | | |
| |||
2280 | 2345 | | |
2281 | 2346 | | |
2282 | 2347 | | |
2283 | | - | |
2284 | | - | |
| 2348 | + | |
2285 | 2349 | | |
2286 | 2350 | | |
2287 | 2351 | | |
| |||
2307 | 2371 | | |
2308 | 2372 | | |
2309 | 2373 | | |
2310 | | - | |
2311 | | - | |
| 2374 | + | |
2312 | 2375 | | |
2313 | 2376 | | |
2314 | 2377 | | |
| |||
2344 | 2407 | | |
2345 | 2408 | | |
2346 | 2409 | | |
2347 | | - | |
2348 | | - | |
| 2410 | + | |
2349 | 2411 | | |
2350 | 2412 | | |
2351 | 2413 | | |
| |||
2376 | 2438 | | |
2377 | 2439 | | |
2378 | 2440 | | |
2379 | | - | |
2380 | | - | |
| 2441 | + | |
2381 | 2442 | | |
2382 | 2443 | | |
2383 | 2444 | | |
| |||
2408 | 2469 | | |
2409 | 2470 | | |
2410 | 2471 | | |
2411 | | - | |
2412 | | - | |
| 2472 | + | |
2413 | 2473 | | |
2414 | 2474 | | |
2415 | 2475 | | |
| |||
2486 | 2546 | | |
2487 | 2547 | | |
2488 | 2548 | | |
2489 | | - | |
2490 | 2549 | | |
2491 | | - | |
| 2550 | + | |
2492 | 2551 | | |
2493 | 2552 | | |
2494 | 2553 | | |
| |||
3208 | 3267 | | |
3209 | 3268 | | |
3210 | 3269 | | |
3211 | | - | |
3212 | | - | |
| 3270 | + | |
3213 | 3271 | | |
3214 | 3272 | | |
3215 | 3273 | | |
| |||
3259 | 3317 | | |
3260 | 3318 | | |
3261 | 3319 | | |
3262 | | - | |
3263 | | - | |
| 3320 | + | |
3264 | 3321 | | |
3265 | 3322 | | |
3266 | 3323 | | |
| |||
3289 | 3346 | | |
3290 | 3347 | | |
3291 | 3348 | | |
3292 | | - | |
3293 | | - | |
3294 | | - | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
3295 | 3353 | | |
3296 | | - | |
| 3354 | + | |
3297 | 3355 | | |
3298 | 3356 | | |
3299 | 3357 | | |
| |||
0 commit comments