Repository navigation
fix(context-pivot): clarify native no-history failures - #235
Conversation
748ed36 to
9d172f0
Compare
|
Synchronized with the latest upstream main. Focused context-pivot tests pass 4/4, along with lint, typecheck, and diff checks. The PR is mergeable and awaits maintainer review/workflow approval. |
|
补充代码审计结果:已修复 headless 模式的失败可见性缺口。context-pivot 针对性测试 5/5,lint/typecheck 通过;PR 当前仍保持 open,等待维护者审核。 |
|
代码有效性审计结论:PR #235 的 native |
a36754b to
0096a78
Compare
somewan820
left a comment
There was a problem hiding this comment.
已完成静态审查。native no-history failure 的 UI/headless 映射保持既有 cleanup/state 行为,context-pivot 的相关路径与测试覆盖一致。未发现 P0-P2、死代码或明显测试缺口。未运行测试。
0096a78 to
09a8192
Compare
09a8192 to
d116f9a
Compare
* fix(context-pivot): clarify native no-history failures * fix(context-pivot): report headless compaction failures --------- Co-authored-by: QuinnWan <[email protected]> (cherry picked from commit bb95552)
Problem
context_pivotcan pass its minimum context threshold while native compaction still rejects the session withNothing to compact (session too small). The current error is technically accurate but does not tell the user what to do next.Value
Turn this native no-history failure into a clear, actionable message while preserving the existing behavior and messages for all other failures.
Approach
Nothing to compact (session too small)error./sessionsto choose another session or start a new one.Related to #24
Validation
node --test --experimental-strip-types tests/extensions/context-pivot/index.test.ts— 4/4 passedbun run lint— passedbun run typecheck— passed; existing file-search Effect warnings remain outside this changegit diff upstream/main...HEAD --check— passedImpact
No persisted data, native compaction semantics, or unrelated extension behavior changes.
Compatibility
Existing successful pivots and other errors retain their current behavior.