Repository navigation
feat(queue): add host-confirmed sorting across product surfaces - #3783
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pending messages had an uneven outer border, misaligned recovery actions, and no way to change execution order. This adds host-confirmed reordering and a consistent queue presentation across desktop/web, mobile web, native mobile controllers, and embedded TUI.
reorderoperation to the existing dialog-queue port. Reorder the actual dispatch queue without resubmitting messages or moving unrelated priority lanes./queuekeyboard controls in embedded TUI.supportsReordersnapshot field. Legacy hosts retain their existing queue controls.Type and Areas
Feature, UI/UX, regression protection. Runtime contracts/scheduler, Web UI/design system, mobile web, native mobile controllers, CLI/TUI, and owning documentation.
Motivation / Impact
The displayed order now follows the execution host's confirmed dispatch order. Dragging sends one mutation on release; conflicting updates cancel the move instead of overwriting newer work. Pointer cancellation, keyboard focus after acknowledgment, touch targets, narrow layouts, and recovery actions are covered.
Native mobile input keeps its existing running-turn semantics. Shared TUI currently reports queue management as unsupported because its private IPC contract does not negotiate this port; it does not fall back to local execution. Existing queue memory/lifetime guarantees are unchanged.
Verification
Passed locally:
cargo test --locked -p openbitfun-core --no-default-features --features remote-connect,git --lib host_queue_— 22 tests, including actual dispatch order, idempotent retry, stale revision, and invalid targets.cargo test --locked -p openbitfun-runtime-ports --no-default-features --features agent-api --lib dialog_queue— 4 tests, including legacy snapshot deserialization and old-payload round trip.cargo test --locked -p openbitfun-agent-runtime --no-default-features --features agent-runtime --lib dialog_turn_queue_reorder— priority/subset behavior.cargo test --locked -p openbitfun-cli --bin openbitfun ui::message_queue::tests— 3 keyboard/state/render tests at compact and normal terminal widths; 45actions::testscommand-registry tests and CLI compile also passed.pnpm run check:web,pnpm run theme:color-audit:all,pnpm run i18n:audit,pnpm run mobile:ui:check,pnpm run check:repo-hygiene,pnpm run check:core-boundaries, andgit diff --check.:core-feature:jvmTest --tests '*MessageQueueStoreTest*'— 6 tests, plus the debug XCFramework build.:app:assembleDebugand:app:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.openbitfun.mobile.app.MessageQueuePanelTest— 3 tests on a dedicated disposable emulator; final Kotlin compile passed.node --test tools/tests/message-queue.test.cjs— 5 production-store tests.Known existing/environment limitations (not hidden by changed baselines):
mobile:architecturereports the same three existing violations on the clean base: public defaults in AccountUiState/ConversationModels and the ClientBuildContractTest cross-platform reference.Reviewer Notes
Commits separate host contracts/ordering, desktop and mobile-web presentation, native mobile controllers, and TUI integration. Selected queue metadata inherits the selection foreground to keep attachments and status legible. No new Tauri command, persisted shape requirement, workspace dependency feature union, or controller-local execution path is introduced.
Checklist