Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tags: coder/agentapi

Tags

Verified

This tag was signed with the committer’s verified signature.
35C4n0r 35C4n0r

agentapi_224

Toggle agentapi_224's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
fix(screentracker): make writeStabilize Phase 1 non-fatal when agents…

… don't echo input (#208)

Fixes #123.

- Make Phase 1 (echo detection) of `writeStabilize` non-fatal on timeout -- proceed to Phase 2 instead of returning HTTP 500
- Guard non-fatal path with `errors.Is(err, util.WaitTimedOut)` so context cancellation still propagates
- Reduce Phase 1 timeout from 15s to 2s (terminal echo is near-instant)
- Extract `writeStabilizeEchoTimeout` and `writeStabilizeProcessTimeout` constants
- Log at Info level (not Warn) since non-echoing agents hit this on every message
- Add doc comment on `formatPaste` in `claude.go` documenting the ESC limitation with TUI selection prompts
- Add tests for non-echoing agents (reacts, unresponsive, context-cancelled)

## Known limitation

For TUI selection prompts (numbered/arrow-key lists), this fix eliminates the 500 but does **not** deliver the correct selection -- the `\x1b` (ESC) in bracketed paste cancels the selection widget. The correct approach is `MessageTypeRaw`. Documented via a comment on `formatPaste` in `lib/httpapi/claude.go`.

Also discovered a separate issue during smoke-testing: #209 (fixed in #215, included in this branch).

> 🤖 Written by a Coder Agent. Reviewed by several humans and a veritable army of robots.


Co-authored-by: 35C4n0r <70096901+35C4n0r@users.noreply.github.com>

Verified

This tag was signed with the committer’s verified signature.
35C4n0r 35C4n0r

agentapi_203

Toggle agentapi_203's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore: update version to 0.12.1 (#201)

Verified

This tag was signed with the committer’s verified signature.
35C4n0r 35C4n0r

agentapi_199

Toggle agentapi_199's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore: update version to 0.12.0 (#199)

Verified

This tag was signed with the committer’s verified signature.
35C4n0r 35C4n0r

Verified

This tag was signed with the committer’s verified signature.
35C4n0r 35C4n0r

Verified

This tag was signed with the committer’s verified signature.
35C4n0r 35C4n0r

Verified

This tag was signed with the committer’s verified signature.
35C4n0r 35C4n0r
Morty Proxy This is a proxified and sanitized view of the page, visit original site.