Skip to content

Show pi startup stderr in chat#197

Merged
dnouri merged 1 commit intomasterfrom
show-startup-stderr-errors
Apr 27, 2026
Merged

Show pi startup stderr in chat#197
dnouri merged 1 commit intomasterfrom
show-startup-stderr-errors

Conversation

@dnouri
Copy link
Copy Markdown
Owner

@dnouri dnouri commented Apr 27, 2026

When pi cannot start, Emacs used to show little more than “Process
exited.” The useful part of the failure was often printed by pi itself on
stderr and then disappeared into the subprocess boundary.

Show that stderr in the chat buffer for startup failures. A user who hits
a #196-style proxy error now sees the actual invalid URL protocol message
without needing to hunt through hidden process state or rerun pi outside
Emacs.

Keep the behavior intentionally small:

  • show stderr only when startup fails;
  • omit the stderr section when there is no stderr;
  • cap very large stderr while keeping the beginning and end;
  • do not add proxy-specific settings or try to parse stack traces.

Refs #196.

Checks:

  • make test SELECTOR=startup-error VERBOSE=1
  • make test SELECTOR=stderr VERBOSE=1
  • make test-core VERBOSE=1
  • make test-integration-fake
  • make test-integration-ci-real SELECTOR=tool-contract
  • make check
When pi cannot start, Emacs used to show little more than “Process
exited.”  The useful part of the failure was often printed by pi itself on
stderr and then disappeared into the subprocess boundary.

Show that stderr in the chat buffer for startup failures.  A user who hits
a #196-style proxy error now sees the actual invalid URL protocol message
without needing to hunt through hidden process state or rerun pi outside
Emacs.

Keep the behavior intentionally small:

- show stderr only when startup fails;
- omit the stderr section when there is no stderr;
- cap very large stderr while keeping the beginning and end;
- do not add proxy-specific settings or try to parse stack traces.

Refs #196.

Checks:

- make test SELECTOR=startup-error VERBOSE=1
- make test SELECTOR=stderr VERBOSE=1
- make test-core VERBOSE=1
- make test-integration-fake
- make test-integration-ci-real SELECTOR=tool-contract
- make check
@dnouri dnouri force-pushed the show-startup-stderr-errors branch from bbace24 to 08a4a75 Compare April 27, 2026 13:38
@dnouri dnouri merged commit 22d6706 into master Apr 27, 2026
10 of 11 checks passed
@dnouri dnouri deleted the show-startup-stderr-errors branch April 27, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant