Skip to content

fix(cli): report failed turns and install user services - #159

Open
adriannoes wants to merge 8 commits into
developmentfrom
fix/terminal-and-install
Open

adriannoes wants to merge 8 commits into
developmentfrom
fix/terminal-and-install

Conversation

@adriannoes

@adriannoes adriannoes commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Return exit code 1 when a turn fails in shellclaw -m. Keep the provider error in the reply and show the last known provider state in /status.
  • Show the prompt before reading input. Exit at the end of a terminal session or a finite input pipe. Keep scheduled jobs running when an older systemd unit starts ShellClaw with /dev/null.
  • Make the installer test the selected executable before it changes the units. Preserve the previous model, port, and user configuration on reinstall.
  • Wake the HTTP thread on shutdown and wait for it before releasing the gateway state.

Test plan

  • Run the clean gateway suite on Ubuntu 24.04 ARM64 as an unprivileged user. Exercise provider failure and recovery, terminal input, and headless mode.
  • Install under default and custom paths. Migrate a read-only configuration with port 9097, preserve it on a retry, and reject an incompatible custom executable before changing the units.
  • Exercise a binary-only update and rollback with the command from the previous service unit. Confirm that a due job runs after restart.
  • Pass a finite pipe with the systemd environment present. ShellClaw prints the local help and exits. The previous unit with /dev/null stays active.
  • Both unit layouts passed systemd-analyze verify. Stop an idle gateway with SIGTERM.
  • Start the service with a live systemd user manager. The test container ran the unit commands under a test supervisor.

@adriannoes adriannoes added bug Something isn't working documentation Improvements or additions to documentation labels Nov 27, 2026
@adriannoes adriannoes self-assigned this Nov 27, 2026
@adriannoes adriannoes added the review: changes needed The code review found a problem to fix before merge. label Nov 27, 2026
@adriannoes adriannoes added review: ready for approval The code is ready for the required GitHub approval. and removed review: changes needed The code review found a problem to fix before merge. labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation review: ready for approval The code is ready for the required GitHub approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant