Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Fix copilot secret unredaction #1108

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/codegate/pipeline/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ async def process_stream(
finally:
# NOTE: Don't use await in finally block, it will break the stream
# Don't flush the buffer if we assume we'll call the pipeline again
if cleanup_sensitive is False and finish_stream:
self._record_to_db()
if cleanup_sensitive is False:
if finish_stream:
self._record_to_db()
return

# Process any remaining content in buffer when stream ends
Expand Down