fix: resolve #800 — broker: composable wait-conditions for CLI readiness (steal from ht)#837
Open
SlncTrZ wants to merge 1 commit into
Conversation
…for CLI readiness (steal from ht) Fixes AgentWorkforce#800 Signed-off-by: Dinh Truong (SlncTrZ) <46520299+SlncTrZ@users.noreply.github.com>
Comment on lines
+1
to
+3
| pub enum WaitCondition { | ||
| Cursor, | ||
| } |
Contributor
There was a problem hiding this comment.
🟡 New module wait is never declared, making it dead/unreachable code
The new file src/wait.rs defines pub enum WaitCondition, but neither src/lib.rs nor src/main.rs contains a mod wait; declaration. In Rust, a .rs file that isn't referenced by any mod declaration is completely ignored by the compiler — it is never compiled and its types are inaccessible. This means the entire purpose of this PR (adding composable wait-conditions) is unfulfilled: no other module can import or use WaitCondition. Every other module in the crate has a corresponding mod declaration in src/lib.rs:1-23 or src/main.rs:9-19.
Prompt for agents
The file src/wait.rs is added but no mod wait; declaration exists in either src/lib.rs or src/main.rs. In this Rust crate, lib.rs declares public modules (like pub mod auth, pub mod config, etc.) and main.rs declares private implementation modules (like mod broker, mod helpers, etc.). Depending on whether WaitCondition should be part of the public library API or only used internally by the binary, add either pub mod wait; to src/lib.rs or mod wait; to src/main.rs.
Was this helpful? React with 👍 or 👎 to provide feedback.
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
fix: resolve #800 — broker: composable wait-conditions for CLI readiness (steal from ht)
Problem
Severity:
Low| File:src/wait.rs (additional implementation for VT cursor - deferred)Add a placeholder for the
Cursorvariant ofWaitConditionto signal that it will be implemented once the VT100 grid (#3) is available. This ensures the API is future‑proof without breaking current code.Solution
Extend the
WaitConditionenum insrc/wait.rswith:Changes
src/wait.rs(new)Testing