Skip to content

An unreadable agent log answer is an error, not an empty page - #41

Draft
techgopal wants to merge 1 commit into
mainfrom
web-s1/logs-unreadable
Draft

techgopal wants to merge 1 commit into
mainfrom
web-s1/logs-unreadable

Conversation

@techgopal

Copy link
Copy Markdown
Contributor

GET /servers/{id}/logs answered an empty page with no cursor when the agent's answer could not be parsed, so the Logs tab re-polled from the newest lines and showed them as new. It now answers 502; a quiet journal keeps the caller's cursor. The site log stream ends with an error event. Tests: server and site log pages (FakeAgent gains set_log_output). Clippy failure at crates/agent/src/helper/cli.rs:49 is outside this diff.

…keeps the caller's cursor

Signed-off-by: gopal tathe <44522021+techgopal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant