Skip to content

Conversation

@sehr-m
Copy link
Member

@sehr-m sehr-m commented Dec 23, 2025

Problem:
Current "Copy As Markdown" button in issue details doesn't handle threaded stacktraces and ignores the user selected thread.

Solution:
Following this commit, added setting and getting of active thread value from ui and included a threads section in the markdown with the relevant stacktrace. Also extracted the formatStacktraceToMarkdown method for easy reuse.

Testing:
Works locally with both button and hotkeys. Tooltip also updates with correct length based on thread selected.

Watchdog thread selected, added portion after change:
Screenshot 2025-12-23 at 12 26 26 PM

Main thread selected, added portion after change:
Screenshot 2025-12-23 at 12 26 45 PM

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 23, 2025
@sehr-m sehr-m marked this pull request as ready for review January 5, 2026 17:16
@sehr-m sehr-m requested review from a team as code owners January 5, 2026 17:16
Copy link
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

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

core of the logic looks good to me! will defer to frontend folks on state management, etc.

@sehr-m sehr-m requested a review from a team January 5, 2026 18:57
Comment on lines 57 to 60
const markdownText = useMemo(() => {
return issueAndEventToMarkdown(group, event, groupSummaryData, autofixData);
}, [group, event, groupSummaryData, autofixData]);
// eslint-disable-next-line react-hooks/exhaustive-deps -- activeThreadId triggers recomputation when thread changes
}, [group, event, groupSummaryData, autofixData, activeThreadId]);
Copy link
Member

Choose a reason for hiding this comment

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

maybe pass the activeThreadId to issueAndEventToMarkdown so that we don't have to disable this rule

Copy link
Member

@scttcper scttcper left a comment

Choose a reason for hiding this comment

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

not super excited about the singleton pattern being added to store that id but i'm also not sure a context just for that value would be better

@sehr-m sehr-m merged commit 0dc92ed into master Jan 6, 2026
52 checks passed
@sehr-m sehr-m deleted the sehr/fix/copy-threaded-stacktraces branch January 6, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants