Skip to content

fix async bugs and add tests#25

Merged
Andrew Kent (realark) merged 6 commits into
mainfrom
ark/fix-async-bugs
Jun 1, 2026
Merged

fix async bugs and add tests#25
Andrew Kent (realark) merged 6 commits into
mainfrom
ark/fix-async-bugs

Conversation

@realark

@realark Andrew Kent (realark) commented May 27, 2026

Copy link
Copy Markdown
Contributor
  • redesign plugin to fix bugs introduced by using async hooks (use work queue plus bg span uploader)
  • add tests
  • add session replay tool w/ tests
  • fix misc bugs found from adding tests

this is a similar architecture and test approach to what we're doing in the opencode plugin: https://github.com/braintrustdata/braintrust-opencode-plugin

@realark Andrew Kent (realark) force-pushed the ark/fix-async-bugs branch 2 times, most recently from 9b67f69 to 311d54f Compare May 27, 2026 06:36
@realark Andrew Kent (realark) marked this pull request as ready for review May 27, 2026 17:10
@realark Andrew Kent (realark) changed the title fix async bugs fix async bugs and add tests May 27, 2026
@realark Andrew Kent (realark) force-pushed the ark/fix-async-bugs branch 2 times, most recently from 38e8dbc to cbff3fd Compare May 27, 2026 17:49

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yeah the per session queue feels much better. nice refactor!

Comment thread plugins/trace-claude-code/hooks/session_end.sh Outdated
Comment thread plugins/trace-claude-code/hooks/common.sh Outdated
hooks fire and forget the event, bg worker does the http. shutdown
drains queue and waits for bg worker
@realark Andrew Kent (realark) merged commit cc8dd55 into main Jun 1, 2026
1 check passed
@realark Andrew Kent (realark) deleted the ark/fix-async-bugs branch June 1, 2026 22:14
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