Skip to content

fix(site): fix agent logs streaming for third party apps #14541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

BrunoQuaresma
Copy link
Collaborator

The UI mistakenly assumed that the agent should only stream logs while it was running. However, this assumption was not accurate because third-party apps can use the Coder API to send logs to the agent in other states. The only state that does not produce logs is the "off" state. Therefore, this fix refactors the code to reflect this behavior.

Fix #14257

@BrunoQuaresma BrunoQuaresma requested a review from a team September 3, 2024 16:54
@BrunoQuaresma BrunoQuaresma self-assigned this Sep 3, 2024
@BrunoQuaresma BrunoQuaresma requested review from aslilac and removed request for a team September 3, 2024 16:54
Copy link
Contributor

@jaaydenh jaaydenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to have very help comments in the code. 👍

@BrunoQuaresma BrunoQuaresma merged commit 242b1ea into main Sep 3, 2024
28 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-agent-logs branch September 3, 2024 18:01
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

agent logs don't stream on web when writing from a second log source - 2.13 regression
4 participants