UI: show command only when a step is started, buttons left of comment, fail-comment warning, keep focus on current step
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Work Records / validate (push) Successful in 15s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: sonnet
Assistant-Process: 295952@bnt-lap001
Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
This commit is contained in:
tegwick 2026-09-29 11:01:00 +02:00
parent e30d81c5b6
commit 86ac0bebbe
4 changed files with 124 additions and 35 deletions

View file

@ -173,7 +173,7 @@ def verify(run: Run, step_id: str, confirm: bool = False, manual_ok: bool | None
return result
def complete(run: Run, step_id: str, evidence: dict[str, str] | None = None) -> None:
def complete(run: Run, step_id: str, evidence: dict[str, str] | None = None, note: str = "") -> None:
sd = run.step_def(step_id)
st = run.state(step_id)
if st["state"] != "running":
@ -185,6 +185,8 @@ def complete(run: Run, step_id: str, evidence: dict[str, str] | None = None) ->
if missing:
raise RunError(f"evidence required: {', '.join(missing)}")
st["evidence"] = {k: _clean(str(v), f"evidence {k}") for k, v in evidence.items()}
if note.strip():
st["note"] = _clean(note.strip(), "note")
st.update(state="done", finished=_now())
run.save()