mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-09-14 19:59:52 +08:00
8e9772baa8
StreamCompletion used http.NewRequest without context and retry with context.Background(), making streaming calls uncancellable. Memory compression called Completions() without context, leaving async goroutines unable to be cancelled or timed out. - Add StreamCompletionWithCtx to LLMClient interface and both OpenAI/Anthropic implementations - Propagate context through runCompression, addNextMessage, and triggerAsyncCompression call chain - Add 5-minute timeout cap on async compression goroutines - Cancel in-flight compression HTTP requests when job is superseded