Skip to content

Throw when transcript exceeds a certain size#2046

Closed
flin-8 wants to merge 1 commit into
mainfrom
frank/costusage
Closed

Throw when transcript exceeds a certain size#2046
flin-8 wants to merge 1 commit into
mainfrom
frank/costusage

Conversation

@flin-8

@flin-8 flin-8 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Adding a guard for now so we don't send huge transcripts and overload Server's storage

Resolves MD-2102: Implement a hard limit to prevent runaway storage costs

@flin-8 flin-8 self-assigned this Jun 28, 2026

if (File.Exists(verboseLogPath))
{
ThrowIfTranscriptTooBig(verboseLogPath);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This throws once the task has completed already right?
Wonder if we can keep track of this as we append the transcript and throw mid-execution, just to avoid this being a way to hide something malicious

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep track as in audit this?

@flin-8 flin-8 closed this Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants