Skip to content

[Fix] Slack transcripts crash on long thread activity sequences#488

Merged
mrubens merged 1 commit into
developfrom
fix/slack-transcript-activity-stack-2u1lz6wgbfxw8
Jul 17, 2026
Merged

[Fix] Slack transcripts crash on long thread activity sequences#488
mrubens merged 1 commit into
developfrom
fix/slack-transcript-activity-stack-2u1lz6wgbfxw8

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

Opened on behalf of Matt Rubens. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

Replaced recursive Slack transcript wrapper parsing with an iterative, memoized implementation so long sequences of valid <thread_activity> blocks no longer blow the call stack while extracting or hiding transcript text.

Why this change was made

A review finding on the v0.8.0 promote PR showed that sequential <thread_activity> blocks still consumed one stack frame each. About 2,000 well-formed blocks (~78 KB) made normalizeTranscriptUserText throw RangeError: Maximum call stack size exceeded, so crafted or heavy thread activity could still break transcript processing after the earlier regex hang fix.

Impact

Slack transcript normalization and visibility handling stay behavior-compatible for normal wrappers, including lookalike closers and mixed activity/context/message shapes, but large sequential thread-activity payloads no longer crash with a call-stack overflow.

Replace recursive thread_activity traversal with an iterative, memoized
parser so thousands of sequential activity blocks cannot blow the call stack.
@roomote-roomote

roomote-roomote Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

No code issues found. See task

Reviewed 284b1b4

@mrubens
mrubens marked this pull request as ready for review July 17, 2026 13:24
@mrubens
mrubens merged commit f95803d into develop Jul 17, 2026
16 checks passed
@mrubens
mrubens deleted the fix/slack-transcript-activity-stack-2u1lz6wgbfxw8 branch July 17, 2026 13:24
@roomote-roomote roomote-roomote Bot mentioned this pull request Jul 17, 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.

1 participant