Repository navigation
feat(site): warn when workspace logs are truncated in Agents chat - #32305
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ce6515461
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| {!build && (workspaceQuery.isError || historicalBuildQuery.isError) && ( | ||
| <LogNotice icon="warning"> | ||
| Unable to check whether build logs were truncated. |
There was a problem hiding this comment.
Announce the asynchronous truncation-status failure
When either metadata query fails after the expanded log section has rendered, this notice is inserted dynamically through LogNotice, which has neither a live-region role nor aria-live. Screen-reader users are therefore not informed that truncation status could not be checked; use the existing alert primitive or add appropriate status semantics.
Useful? React with 👍 / 👎.
| enabled: | ||
| Boolean(effectiveBuildId) && | ||
| !isRunning && | ||
| (!workspaceId || | ||
| ((workspaceQuery.isSuccess || workspaceQuery.isError) && | ||
| !watchedBuild)), |
Agents chat now warns when workspace build or agent startup logs reach the storage limit. Startup warnings include
/tmp/coder-startup-script.logas a recovery path.Keep known truncation warnings visible when logs are empty or fail to load. Preserve overflow-only workspace updates, recover completed-build metadata after workspace lookup failures, and retain historical build metadata when a newer build starts. Show a separate notice when truncation status cannot be checked.
Refs CODAGT-1185.
Validation and review decisions
pnpm check,pnpm lint,pnpm format:check,make lint/emdash, andgit diff --check.role="log"live-region ancestor. No nested live region was added. The Codex accessibility thread remains open because actual screen-reader announcements have not been verified.