Skip to content

release: dev → main (goal turn-scope, hook headers, tui question tabs) - #282

Merged
LeXwDeX merged 6 commits into
mainfrom
dev
Aug 15, 2026
Merged

release: dev → main (goal turn-scope, hook headers, tui question tabs)#282
LeXwDeX merged 6 commits into
mainfrom
dev

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented Aug 15, 2026

Copy link
Copy Markdown
Owner

合并 dev 到 main,包含自上次 release 的三个修复:

  1. fix(tui) (fix(tui): truncate question tab headers to terminal width #279): question 工具 TAB 头部宽度感知截断,修复长 header 渲染成长条
  2. fix(goal) (fix(goal): bound goal-driven turns and map ESC to goal pause #280): GOAL-TURN-SCOPE——goal 驱动轮步数上限、ESC 暂停语义、执行中状态行、预算文案统一
  3. fix(hook) (fix(hook): apply http-hook headers and harden hookAdd validation #281): http-hook headers 落地应用(P1)、hookAdd 校验硬化、F1 注释对齐

三个 PR 均已独立通过 dev 门禁并在 dev push 触发全量测试通过;请 main 门禁(Typecheck + Unit Tests + E2E linux/windows)复核。

fix(tui): truncate question tab headers to terminal width
- GOAL-TURN-SCOPE: process-local turn provenance for kick/continuation/resume-kick
- cap goal turns at min(agent.steps, GOAL_TURN_MAX_STEPS=50) so every turn reaches idle where judge/budget engage
- ESC on a goal turn now pauses the goal instead of auto-resurrecting via judge continuation
- statusLine shows 执行中 while a goal turn runs; honest budget-exhaustion/resume texts
- tests: turn-scope.test.ts (9 cases)
fix(goal): bound goal-driven turns and map ESC to goal pause
- httpHandler now sends entry.headers (auth etc.) with the hook POST; non-2xx and network-error semantics unchanged
- hooksapi hookAdd rejects blank command strings and non-positive timeouts (BadRequest, matching the existing empty-hooks guard)
- refresh the F1 interrupt comment in goal/loop.ts for the cancel-path pause landed with the goal-turn-scope change
- tests: wire-level httpHandler headers test (Bun.serve), hooksapi validation test, httpapi-exercise scenarios
fix(hook): apply http-hook headers and harden hookAdd validation
@LeXwDeX
LeXwDeX merged commit fee6971 into main Aug 15, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant