mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-12-01 01:05:10 +08:00
fix: prevent silent SSE stream hangs, add Bash alias, debug logging
- Actor: use lifecycle::cancel() instead of handle.cancel() on channel close and Abort, ensuring end-stream frame is always emitted - Lifecycle: use match instead of ? on encode_error_end_stream with fallback end-stream frame to prevent silent hangs - Dispatch: add Bash tool alias for Shell - Context/Blob sync: increase timeouts from 15s to 60s - Providers: add detailed debug logging to openai_chat and router
This commit is contained in:
1 parent
c4031d4074
commit
80604bdf97
8 files changed
+193
-192
No files matched your search
@@ -58,14 +58,14 @@ impl CursorActor {
|
||||
let command = match receiver.recv().await {
|
||||
Some(command) => command,
|
||||
None => {
|
||||
handle.cancel();
|
||||
lifecycle::cancel(&handle).ok();
|
||||
break;
|
||||
}
|
||||
};
|
||||
match command {
|
||||
CursorCommand::Abort => {
|
||||
handle.mark_conversation_cancelled();
|
||||
handle.cancel();
|
||||
lifecycle::cancel(&handle).ok();
|
||||
}
|
||||
CursorCommand::Finished => {
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user