Skip to content

fix: keep assistants running when earlier background commands finish - #43

Merged
johoja12 merged 1 commit into
localfrom
fix/42-late-background-completion
Nov 3, 2026
Merged

johoja12 merged 1 commit into
localfrom
fix/42-late-background-completion

Conversation

@johoja12

@johoja12 johoja12 commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Home stopped accepting requests after an older background command completed during its current turn. The observer treated that earlier turn ID as a conversation mismatch, marked the request uncertain, and blocked automatic recovery despite the current turn later completing normally.

Ignore only CommandExecution completions from the same conversation whose valid UUIDv7 turn timestamp is strictly earlier than the current turn. These events never contribute to the current result. Other conversations, missing/unordered IDs, same-millisecond or newer IDs, non-command events and overlapping task starts continue to fail closed. No request replay or relaxation of completion evidence.

Fixes #42.

Validation: 59 assistant request/recovery tests pass, including eight new regression cases and a durable dispatch/completion test proving one submission and the current answer. Replayed the actual production incident transcript: the exact request now projects as completed with its matching native turn. Typecheck, lint, format and lockfile checks pass. Existing shared assistant WIP remains separate. Deployment will update only the observer module while retaining the already-deployed assistant behavior; no frontend rebuild is needed.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ae6a75cd-e8b6-4023-940d-4869d33a5be7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@johoja12
johoja12 merged commit 096706b into local Nov 3, 2026
3 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