Skip to content

Comments

fix: surface Python errors during agentcore dev#359

Open
notgitika wants to merge 2 commits intoaws:mainfrom
notgitika:fix/surface-python-errors-byo-dev
Open

fix: surface Python errors during agentcore dev#359
notgitika wants to merge 2 commits intoaws:mainfrom
notgitika:fix/surface-python-errors-byo-dev

Conversation

@notgitika
Copy link
Contributor

Description

Surface Python process errors during agentcore dev instead of showing generic messages like "Failed: fetch failed" or "Internal Server Error".

  • Detect Python tracebacks in stderr and show only user-code frames + exception (filter out internal site-packages/stdlib frames)
  • Show Python errors inline in the conversation (red) with a "See logs for full stack trace" hint (cyan)
  • Throw on HTTP 500 responses instead of displaying raw body as a normal response
  • Buffer recent stderr and re-emit as errors on non-zero process exit
  • Improve exit message to "Server crashed (code N)" for non-zero exits

Related Issue

Closes #257

Documentation PR

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

Yes

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@notgitika notgitika requested a review from a team February 20, 2026 16:04
@github-actions github-actions bot added the size/m PR size: M label Feb 20, 2026
@github-actions github-actions bot added size/m PR size: M and removed size/m PR size: M labels Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Surface Python process errors during agentcore dev for BYO agents

2 participants