summarizer tweaks
This commit is contained in:
@@ -15,6 +15,10 @@ loosely follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|||||||
doesn't advertise itself when it has nothing to dismiss.
|
doesn't advertise itself when it has nothing to dismiss.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- Auto-summary no longer fails immediately with `codex summarizer:
|
||||||
|
error: unexpected argument '--ask-for-approval' found`. The codex
|
||||||
|
CLI dropped that flag; we now rely on `--sandbox read-only` (which
|
||||||
|
already implies no approvals) instead of passing it.
|
||||||
- Toast box no longer flickers / half-erases while the focused
|
- Toast box no longer flickers / half-erases while the focused
|
||||||
child (claude, codex, opencode, etc.) repaints its TUI. The
|
child (claude, codex, opencode, etc.) repaints its TUI. The
|
||||||
overlay is now stitched onto the end of the per-chunk PTY write
|
overlay is now stitched onto the end of the per-chunk PTY write
|
||||||
|
|||||||
@@ -187,9 +187,7 @@ func Run(ctx context.Context, opts Options) error {
|
|||||||
}, func(_ string, result summaryState) {
|
}, func(_ string, result summaryState) {
|
||||||
if result.Error != "" {
|
if result.Error != "" {
|
||||||
st.flashError(fmt.Sprintf("summary: %v", result.Error))
|
st.flashError(fmt.Sprintf("summary: %v", result.Error))
|
||||||
return
|
|
||||||
}
|
}
|
||||||
st.flashTransient("summary updated")
|
|
||||||
})
|
})
|
||||||
sess.SetMetrics(metrics)
|
sess.SetMetrics(metrics)
|
||||||
host.attention = st
|
host.attention = st
|
||||||
|
|||||||
@@ -404,7 +404,7 @@ func runSummarizerCommand(ctx context.Context, cfg autoSummarySettings, projectD
|
|||||||
case "claude":
|
case "claude":
|
||||||
cmd = exec.CommandContext(ctx, "claude", "--print", "--model", model, prompt)
|
cmd = exec.CommandContext(ctx, "claude", "--print", "--model", model, prompt)
|
||||||
default:
|
default:
|
||||||
cmd = exec.CommandContext(ctx, "codex", "exec", "--ephemeral", "--skip-git-repo-check", "--sandbox", "read-only", "--ask-for-approval", "never", "--model", model, "-")
|
cmd = exec.CommandContext(ctx, "codex", "exec", "--ephemeral", "--skip-git-repo-check", "--sandbox", "read-only", "--model", model, "-")
|
||||||
cmd.Stdin = strings.NewReader(prompt)
|
cmd.Stdin = strings.NewReader(prompt)
|
||||||
}
|
}
|
||||||
cmd.Dir = projectDir
|
cmd.Dir = projectDir
|
||||||
|
|||||||
Reference in New Issue
Block a user