Skip to content

fix: return queue-not-found for missing queue items#69

Merged
lsaether merged 1 commit into
mainfrom
fix/queue-item-not-found-error
Jun 4, 2026
Merged

fix: return queue-not-found for missing queue items#69
lsaether merged 1 commit into
mainfrom
fix/queue-item-not-found-error

Conversation

@lsaether

@lsaether lsaether commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a dedicated -32004 JSON-RPC error for missing amux/unqueue_prompt queue items.
  • Keep malformed queueItemId params on -32602, so clients can distinguish invalid input from queue remove/submit races.
  • Cover the missing-item response with a WebSocket server regression test.

Scope

Tests

  • RED: cargo test amux_unqueue_prompt_missing_item_uses_queue_not_found_error -- --nocapture failed with -32602 before the implementation.
  • GREEN: cargo test amux_unqueue_prompt_missing_item_uses_queue_not_found_error -- --nocapture
  • cargo fmt --check
  • git diff --check
  • cargo test
  • cargo clippy --all-targets -- -D warnings

Part of #43.

@lsaether lsaether merged commit 7a95c2d into main Jun 4, 2026
1 check 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