Improve error messaging when agent exits unexpectedly

Open
#116 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
backend

Research direction

No files, tests, or entry points are named. Start by tracing where the agent process exit is handled and how its status reaches the user; done means normal and error exits clearly state that the session finished and include the available reason.

Written by the indexing model from the issue text.

Description

Description

When the underlying agent exits unexpectedly (e.g., due to no API credits remaining), Gigacode should provide a clear error message indicating that the session has finished and why. Currently, the exit reason is not communicated well to the user.

Examples

  • Agent exits due to no credits: should display something like "Session finished: agent exited due to insufficient API credits"
  • Agent crashes or exits with an error code: should display the reason and explicitly state the session is over

Expected Behavior

When the agent process exits, Gigacode should:

  1. Clearly state that the session has finished
  2. Include the reason for the exit when available
  3. Distinguish between normal completion and error exits

Actual Behavior

The agent exits without a clear message, leaving the user unsure about what happened.

Dominant language
TypeScript
Stars
1.6k
Forks
125
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rivet-dev/sandbox-agent

All issues in rivet-dev/sandbox-agent

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.