Skip to content

fix(gateway): drop empty completed attempts from history - #188111

Merged
RomneyDa merged 1 commit into
mainfrom
fix/drop-unowned-empty-assistant
Oct 30, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/drop-unowned-empty-assistant

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • drop invisible stop/length assistant attempt rows when no recovery is pending
  • retain empty error rows so safe failure guidance and recovery semantics remain intact
  • cover the exact primary/fallback empty-attempt sequence from CI

Validation

  • node scripts/run-vitest.mjs src/gateway/chat-display-projection.test.ts --maxWorkers=1 (53 passed)
  • pnpm format:check -- src/gateway/chat-display-projection.core.ts src/gateway/chat-display-projection.test.ts
  • git diff --check
  • Exact QA E2E local attempt was bounded at five minutes and terminated during gateway startup; hosted CI owns the full-shard proof.

Release evidence

PR #188097 failed test/e2e/qa-lab/runtime/agent-terminal-delivery.e2e.test.ts identically on its initial run and exact failed-job retry: four invisible assistant attempt rows appeared in chat.history where none were expected. Its package-only diff cannot affect this runtime path.

@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Oct 30, 2026
@RomneyDa
RomneyDa merged commit 02b978b into main Oct 30, 2026
115 checks passed
@RomneyDa
RomneyDa deleted the fix/drop-unowned-empty-assistant branch October 30, 2026 05:00
@RomneyDa

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants