Commit 4b28396
committed
Prepend the secret scrub and result cap so short-circuiting plugins can't skip them
composeMiddleware wraps outer-to-inner in array order, so a plugin
positioned earlier in buildCorePosixToolPlugins still sees a call's
final result even when a later plugin (ripgrepPlugin) answers
directly without invoking its own next(). Move
toolResultSecretScrubPlugin and resultTruncationPlugin to the front
of the array so both are unconditional outer wrappers around the
entire chain, mirroring how vendor/intx-inference/src/assembly.ts
hardcodes its size-cap transform as the first, mandatory element
rather than trusting every middleware author to call next().
This closes CL-5717: grep output (and anything else a future plugin
answers without delegating) is now capped and scrubbed regardless of
where in the chain it short-circuits.1 parent 99a2023 commit 4b28396
2 files changed
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
| |||
47 | 57 | | |
48 | 58 | | |
49 | 59 | | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
68 | | - | |
69 | | - | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments