Skip to content

Unhandled promise rejections in session operations crash the TUI #32176

@MethodWhite

Description

@MethodWhite

Description

Several void SDK calls in packages/tui/src/routes/session/index.tsx fire async requests without .catch(). Bun terminates the process on unhandled rejections.

Affected calls:

  • sdk.client.session.summarize() (line 572)
  • sdk.client.session.revert() (line 616)
  • sdk.client.experimental.session.background() (line 1025)

OpenCode version

Latest dev

Steps to reproduce

  1. Use the summarise or revert feature
  2. Trigger a network error
  3. Bun terminates the process with an unhandled rejection

Operating System

Linux

Terminal

Alacritty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions