Fixed up dependencies warning.
This commit is contained in:
@@ -34,11 +34,19 @@ enum WsRequest {
|
||||
/// - `error` reports a request or processing failure.
|
||||
/// - `work_item_changed` notifies that a `.story_kit/work/` file changed.
|
||||
enum WsResponse {
|
||||
Token { content: String },
|
||||
Update { messages: Vec<Message> },
|
||||
Token {
|
||||
content: String,
|
||||
},
|
||||
Update {
|
||||
messages: Vec<Message>,
|
||||
},
|
||||
/// Session ID for Claude Code conversation resumption.
|
||||
SessionId { session_id: String },
|
||||
Error { message: String },
|
||||
SessionId {
|
||||
session_id: String,
|
||||
},
|
||||
Error {
|
||||
message: String,
|
||||
},
|
||||
/// Filesystem watcher notification: a work-pipeline file was created or
|
||||
/// modified and auto-committed. The frontend can use this to refresh its
|
||||
/// story/bug list without polling.
|
||||
@@ -118,10 +126,10 @@ pub async fn ws_handler(ws: WebSocket, ctx: Data<&Arc<AppContext>>) -> impl poem
|
||||
break;
|
||||
}
|
||||
// Push refreshed pipeline state after the change.
|
||||
if let Ok(state) = load_pipeline_state(ctx_watcher.as_ref()) {
|
||||
if tx_watcher.send(state.into()).is_err() {
|
||||
break;
|
||||
}
|
||||
if let Ok(state) = load_pipeline_state(ctx_watcher.as_ref())
|
||||
&& tx_watcher.send(state.into()).is_err()
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Lagged: skip missed events, keep going.
|
||||
|
||||
Reference in New Issue
Block a user