Skip to content

Improve error messaging when agent exits unexpectedly #116

@NathanFlurry

Description

@NathanFlurry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions