Commit 0bc26b2
committed
refactor(chat): remove message linearization
Remove linearize.rs module and its usage from chat preparation pipeline.
The linearization logic (merging consecutive user-like messages,
folding tool-appendable content into tool/diff messages) is no longer
needed as the underlying message processing has evolved. This
simplifies the chat preparation flow while preserving cache hits
through other mechanisms.
Includes minor fixes:
- gui: fix coin display logic in UsageCounter
- queue: handle null boost_reasoning in patches
- caps: add Default impl for CodeAssistantCaps
- session: improve skill deactivation compaction
- cache_guard: strict tools array equality for cache invalidation
- other: snapshot param handling, tool sorting, vecdb scope filtering1 parent 58fbd82 commit 0bc26b2
18 files changed
Lines changed: 426 additions & 1408 deletions
File tree
- refact-agent
- engine/src
- caps
- chat
- http/routers/v1
- llm/adapters
- tools
- vecdb
- gui/src
- __tests__
- components/UsageCounter
- features/Chat/Thread
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
267 | | - | |
| 269 | + | |
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
| |||
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
306 | 328 | | |
307 | 329 | | |
308 | 330 | | |
| |||
972 | 994 | | |
973 | 995 | | |
974 | 996 | | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | 997 | | |
979 | 998 | | |
980 | 999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| |||
300 | 305 | | |
301 | 306 | | |
302 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
303 | 333 | | |
304 | 334 | | |
305 | 335 | | |
| |||
0 commit comments