Skip to content

0.8.10

Choose a tag to compare

@asterixcapri asterixcapri released this 27 Sep 07:38
· 69 commits to 1.x since this release

StopSignal can now be injected when creating the TUI, alongside commands, session storage and message processors.

Breaking API change

Tui::setStopSignal() has been removed. Pass stopSignal: to Tui::make() or the constructor.

Before:

Tui::make($agent)
    ->setStopSignal($stopSignal)
    ->run();

After:

Tui::make(
    $agent,
    stopSignal: $stopSignal,
)->run();

Pass the same StopSignal instance used by the provider’s StoppableHttpClient. The parameter is optional and defaults to null; applications that do not configure a stop signal require no changes.

The full and stop examples have been updated. HTTP stop behavior remains unchanged.