Skip to content

Comments

Fix instrumentation bug when no agent exists#942

Open
timokoessler wants to merge 1 commit intomainfrom
fix-instrumentation-bug
Open

Fix instrumentation bug when no agent exists#942
timokoessler wants to merge 1 commit intomainfrom
fix-instrumentation-bug

Conversation

@timokoessler
Copy link
Member

@timokoessler timokoessler commented Feb 20, 2026

This edge case is triggered when AIKIDO_DISABLE is set and the bundler plugin is used. It wrongly returned the function args instead of the return value.

Summary by Aikido

Security Issues: 0 Quality Issues: 0 Resolved Issues: 0

🐛 Bugfixes

  • Fixed instrumentation to return original return value when agent missing

More info

This edge case is triggered when AIKIDO_DISABLE is set and the bundler plugin is used. It wrongly returned the function args instead of the return value.
@timokoessler timokoessler added the bug Something isn't working label Feb 20, 2026
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant