Skip to content

chore: merge upstream coder/coder 0a7ef88af9 - #244

Merged
ibetitsmike merged 75 commits into
mainfrom
mike/sync-upstream-0a7ef88af9
Nov 12, 2026
Merged

ibetitsmike merged 75 commits into
mainfrom
mike/sync-upstream-0a7ef88af9

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Merge of upstream coder/coder main at 0a7ef88af9 into the fork. Closes #180.

Conflicts (8) and resolutions

Rule applied throughout: take upstream's version, re-apply only the fork's minimal hook lines and fork additions; fork logic stays in fork_* files.

File Resolution
docs/coder-agents/architecture.md Upstream table/padding hunk taken; fork async-question prose kept.
docs/reference/api/users.md Upstream login_type enum row taken; fork row with plugin kept.
site/.../tools/AskUserQuestionTool.tsx Fork async form kept; upstream's 3 Tailwind cleanups (font-medium removal, border-solid -> border, submitted-answer compaction) applied onto it.
site/.../ChatMessageInput/FileReferenceChip.tsx Upstream Tailwind cleanups (max-w-75, border-border/border-0 removals) taken; fork disabled prop (pinned skills, #240) kept.
site/.../ChatPageContent.test.tsx Import lists unioned; upstream and fork test suites both kept.
site/.../ContextResourceTree.tsx Upstream restructure (ContextResourceRow/Tool/Group/Server) taken wholesale; fork's keyboard-focusable described-row button re-applied inside ContextResourceRow.
site/.../ContextUsageIndicator.test.tsx Import lists unioned (MockChatContextResourceFailures added); upstream MCP-server-failure test + fork agent-definition tests kept.
site/src/testHelpers/renderHelpers.tsx Upstream TOOLTIP_DELAY_DURATION named import taken; fork preferenceSettingsKey/TypesGen imports kept.

Generated files

  • ./.github/fork/check-apidoc.sh: exit 0, no drift; coderd/apidoc regenerated content matches the annotations.
  • chatdmig route: exit 0; routes.txt gains 000641 workspace_app_stats_session_ended_at_idx core (core ledger, no mixed migration, no override needed).

Xum (AI agent) opened this on behalf of @ibetitsmike.

jakehwll and others added 30 commits November 9, 2026 06:13
coder#31912)

> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

We don't need this anymore 🥳  Cya MUI.
Computer use only ran on Anthropic and OpenAI AI providers. Chatd
derives the tool flavor from the AI provider type, and `openai-compat`
had no flavor, so every self-hosted model was marked unavailable for
`type=computer_use`, including the model a single-provider deployment
already uses for chat.

Hosted computer tools are not an option on those servers: an
OpenAI-compatible endpoint accepts a `computer_20250124` tool over
`/v1/messages` and a `computer-use-preview` tool over `/v1/responses`
and then drops both, so the model never sees a way to act. Computer use
is now declared as an ordinary function tool for those providers. The
model sends one action per call and every call answers with a fresh
screenshot, which is the shape these models already handle through the
shared action runner. The tool omits `zoom`, which the agent desktop
cannot perform. The desktop clamps a point outside the screen to its
edge, so the tool rejects a coordinate outside the declared screenshot
with an error that states the valid range, and a model that aims off the
screen learns that it missed. Media tool results reach the model because
the pinned fantasy fork promotes them to user-role messages, so no
dependency changed.

Coder can't verify an arbitrary OpenAI-compatible model, so those models
keep the unverified warning icon in the admin UI. The virtual desktop
docs, the Coder Agents index, the chatd architecture doc, and the
organization model settings copy now list OpenAI-compatible providers as
supported, and the docs say what to check before using one.

Three shared behaviors needed fixing to make this usable. A coordinate
of `[0,0]` is the top-left pixel and decoded as an omitted field, so the
desktop rejected those clicks with a missing-coordinate error;
coordinates now decode by key presence, which also keeps an absent
coordinate absent. A `scroll_amount` of zero or less, or a key `repeat`
of zero, was also forwarded as omitted, so the desktop scrolled its
default of three clicks or pressed the key once; the runner now rejects
both, and the function tool declares a minimum of 1 for each. And
because a chat completions model sends one action per call, it plans
every call of a step against one screen, so a failed action now halts
the later calls of that step, as it already did for Anthropic. The
hosted OpenAI flavor still differs here on purpose: it delivers an array
of actions in one call. Halting would strand a mouse press whose release
was planned for a later call, so the function tool offers
`left_click_drag` instead of separate press and release actions, and
rejects any action it does not declare.

Provider types that reuse the chat completions client without being
OpenAI-compatible (Azure, Google, OpenRouter, Vercel, Copilot) stay
unsupported until each is verified.

> [!NOTE]
> `coderd/apidoc/docs.go`, `coderd/apidoc/swagger.json`,
`docs/reference/api/schemas.md` and `site/src/api/typesGenerated.ts` are
hand-edited to match the new enum value, because the environment that
prepared this change had no pnpm to re-run the generators. The same
environment had no node, so `pnpm run typecheck`, biome and prettier did
not run locally; CI is the validator for the `site/` change and the
generated files.

> [!NOTE]
> Prepared by Xum, Mike's coding agent, from the measurement that showed
an OpenAI-compatible server dropping both hosted computer tools.

---------

Co-authored-by: Ethan Dickson <[email protected]>
coder#31829)

## Why

`test-go-race-pg` fails on PRs that touch no Go product code, for
example two runs on coder#31782. Since coder#30124, two parallel tests in
`coderd/coderdtest` call swag's `Spec.ReadDoc`, which writes shared
state, so the race detector fails the whole package (`WARNING: DATA
RACE` in `swag.(*Spec).ReadDoc`, `swagger_test.go:41` and `:77`).

## What changed

`swagger_test.go` renders the spec once through `sync.OnceValue`, and
both tests read that string.

## Verification

- On `main`, `go test -race -count=20 -run
'TestSwaggerParametersValid|TestChatModelPathParametersFormatted'
./coderd/coderdtest/` reported 4 data races and failed.
- With this change, the same command passed with 0 races.
- `golangci-lint` reports 0 issues for `./coderd/coderdtest/` with both
the main and the new-code configs.

---
_Generated with [`xum`](https://github.com/coder/xum) • Model:
`anthropic:claude-opus-5-5` • Thinking: `high`_
)

Fixes WCAG 1.4.13 (content on hover or focus) for the user menu and
chart tooltips: you can now move the pointer onto them without them
disappearing, and Escape dismisses them.

- **User menu** (`UserDropdownContent.tsx`): the "Browse the source
code" and "Copy deployment ID" tooltips used `disableHoverableContent`,
and Radix Menu moves focus from an item to the menu on `pointerleave`,
which blurred the trigger and closed the tooltip. The items now
`preventDefault` on `pointerleave` so they keep focus. The tooltips also
move to `side="left"` so they sit outside the menu instead of covering
the next item. Escape closes only the tooltip; the menu stays open.
- **Charts** (`components/Chart/Chart.tsx`): Recharts tooltips followed
the pointer with `pointer-events: none`, so they could never be reached.
`ChartTooltip` is now a wrapper that centers the tooltip above the
active point at the top of the plot, enables pointer events on the
content, and stops `mousemove` from reaching the chart while the pointer
is over it, so the active point doesn't change. Recharts already
dismisses it on Escape. This applies to all `ChartTooltip` users:
deployment overview user engagement, template insights active users, and
license seat consumption.

Trade-off for UX review: the chart tooltip occupies a band at the top of
the plot. Hovering in that band lands on the tooltip, so you can't scrub
along the chart there, and it can cover the highest part of the line.

Fixes
[DEQ-566](https://linear.app/codercom/issue/DEQ-566/hover-content-disappearing),
[DEQ-324](https://linear.app/codercom/issue/DEQ-324/hover-content-disappearing)

## Proof

Real pointer moved from the trigger onto the tooltip (red dot marks the
pointer). Captured from Storybook.

| | Before | After |
|---|---|---|
| User menu | ![menu
before](https://github.com/coder/coder/raw/54238e512c8732d9fed20c25eb2a4abd01af7a86/sb-menu-before.png)
| ![menu
after](https://github.com/coder/coder/raw/54238e512c8732d9fed20c25eb2a4abd01af7a86/sb-menu-after.png)
|
| Chart | ![chart
before](https://github.com/coder/coder/raw/54238e512c8732d9fed20c25eb2a4abd01af7a86/sb-chart-before.png)
| ![chart
after](https://github.com/coder/coder/raw/54238e512c8732d9fed20c25eb2a4abd01af7a86/sb-chart-after.png)
|

Before: the menu tooltip closes, and the chart tooltip slides away from
the pointer. After: both stay under the pointer.

## Tests

- `UserDropdownContent.test.tsx`: the version item keeps focus on
pointerleave (fails on `main`).
- `Chart.stories.tsx` `TooltipHovered`: activates a point by keyboard
and hovers the tooltip (fails on `main` with `pointer-events: none`).
- Also checked in a real browser (Playwright against
`scripts/develop.sh`): tooltips stay while hovered, Escape dismisses,
keyboard focus still opens the menu tooltips.

<details>
<summary>Implementation notes</summary>

- `ChartTooltip` sets `displayName = "Tooltip"` because Recharts finds
the tooltip among chart children by display name.
- The content element passed to Recharts is a stable component
(`HoverableTooltipContent`) so it isn't remounted under the pointer on
every render.
- Tooltip width is measured with a `ResizeObserver` in a stable callback
ref, to center and clamp the tooltip within the plot.
- `ChartTooltip`'s `content` is now typed as a required
`React.ReactElement`; all existing callers already pass
`<ChartTooltipContent />`.
- Ran the `frontend-deep-review` skill; all `blocking`/`should-fix`
findings were addressed.

</details>

---

_Generated by Coder Agents on behalf of @chrifro._
We used to do this in a bunch of bespoke ways... which all actually
could just be `truncate`. No competing ways on how to handle this 🙁
…nd table columns (coder#31749)

User and agent messages share one spacing: 8px between list items,
16px between blocks. Wrapped list lines align with the item text,
ordered lists keep their start number, and table cells keep their
column alignment.
> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

This had an interesting... "vibe" to it.

<img width="492" height="372" alt="image"
src="https://github.com/user-attachments/assets/1e81828d-ba24-4c35-8f5b-610c32d6dc75"
/>
…31778)

The first apt step read archive.ubuntu.com and the package install read
mirrors.edge.kernel.org, which lagged the archive by more than a day.
When unminimize installed an apt version the mirror lacked, installing
apt-utils, which requires the exact apt version, failed the build.

Every apt step now reads Ubuntu packages through apt's mirror+file
method: archive.ubuntu.com first, then Canonical's Azure mirror, which
falls back per file on any error, including 403. 80-retries now sets
Acquire::Retries and the http timeout, which apt reads, so a failing
host is skipped sooner.
… refs (coder#31494)

When a workspace agent requests external auth, it can send a `chat_id`
(from `CODER_CHAT_ID`) so the current git branch is linked to that chat.
`gitsync.Worker.MarkStale` trusted that ID and never checked that the
chat belongs to the agent's workspace. As a result, any workspace agent
could set the git branch, origin, and PR shown on another user's chat,
and the refresh worker would then fetch PR status with that chat owner's
git token.

`MarkStale` now ignores the request and logs a warning unless both the
requested chat and the root chat that receives the ref are bound to the
calling agent's workspace. Subagent chats are created with their
parent's `workspace_id` (`coderd/x/chatd/subagent.go`), so their
legitimate updates still reach the root chat. The root is checked too
because rebinding a chat's workspace does not rebind its existing
subagent chats. Both external-auth handlers in
`coderd/workspaceagents.go` pass the chat ID through `MarkStale`, so
this single check covers both.

Tests:
- `TestWorker_MarkStale_WithChatID` is now table-driven. A chat on the
same workspace is updated. A chat on another workspace, a chat with no
workspace, and a missing chat get no update and no event.
- `TestWorker_MarkStale_SubagentChatID_UsesRootChat` binds the chats to
real workspaces and adds two calls that must not reach the root: one
from another workspace using the child's ID, and one from the old
workspace through a child after the root is rebound to a new workspace.
- `TestWorker_MarkStale_StripsOriginCredentials` binds its chat to the
caller's workspace, since that test relied on the missing check.

Refs CODAGT-1420, SEC-856. Affects v2.32.0 onward; backports are needed
for every supported release line from 2.32.

<details>
<summary>Investigation notes</summary>

- Source of the chat ID: `agent/agentproc/process.go` sets
`CODER_CHAT_ID` in the process environment, and `cli/gitaskpass.go`
sends it as `chat_id`. Anyone with access to the workspace can set this
value.
- The path without a chat ID already filtered by workspace
(`GetChatsByWorkspaceIDs`); only the chat-ID path skipped the check.
- Open question from the issue (do child chats inherit `workspace_id`?):
yes, `CreateChatWithID` in `subagent.go` sets `WorkspaceID:
parent.WorkspaceID`.
- Edge case (from review): `UpdateChatWorkspaceBinding` rebinds only the
chat it targets, so a child can stay bound to the old workspace after
its root is rebound. Checking only the requested chat let the old
workspace write to the rebound root, so the root's workspace is checked
too.
- I did not add a second rejection in the handlers (optional item 3 in
the issue). `MarkStale` is the only consumer of the chat ID, and
rejecting there would change the external-auth response for git
operations.

</details>

> 🤖 Generated by Coder Agents on behalf of @deansheather.
…coder#31493)

On Claude Opus 5.5, chat title generation and the turn-status label each
made four upstream requests, three of them rejected with a 400. The
temperature retry in `generateQuickgenObject` called `generateObject`
again, which restarted from the forced tool call the model had already
rejected. Each turn left about six `bad_request` rows in
`aibridge_interceptions` and added 1.5 to 3.5 seconds of latency.

This replaces the per-call fallbacks with `quickgenParamModel`, a
wrapper applied in `resolveModelCall`. It falls back to plain JSON text
when the model rejects the forced `tool_choice`, drops `temperature`
when the model rejects it, and records each rejection in a replica-wide
`sync.Map` keyed by AI provider ID, model, and parameter, following the
existing `thinkingDropBlock` map. Entries expire after 6 hours so a
provider that starts accepting a parameter again is picked up without a
restart. Only quickgen calls `GenerateObject`, so chat turns are
unaffected.

| Opus 5.5 | Before | First job per replica (and after expiry) | Later
jobs |
|---|---|---|---|
| Title / status label | 4 (3 rejected) | 3 (2 rejected) | 1 |
| Summary | 2 (1 rejected) | 2 (1 rejected) | 1 |

Rejections are still detected by matching `tool_choice` or `temperature`
in a 400 body, as before. A false match now persists for the TTL on that
replica rather than one job; the worst case is text mode or no
temperature for that model.

Closes
[CODAGT-1411](https://linear.app/codercom/issue/CODAGT-1411/quickgen-side-jobs-make-3-rejected-requests-per-run-on-claude-opus-55)

<details>
<summary>Decision log</summary>

- Opus 5.5 reports one rejected parameter per 400, so a job that knows
nothing yet needs 3 requests; the issue's "2 requests" target for the
minimal fix isn't reachable.
- A per-job flag (first iteration) only got jobs to 3 requests. Sharing
rejections across jobs gets steady state to 1 without a hardcoded model
list, which wouldn't match gateway aliases such as Bedrock IDs anyway.
- Per-replica memory over a database column or admin setting: no
migration, no request-path writes, self-healing via TTL. Each replica
pays the learning cost once per model per TTL window.
- Keyed by provider ID plus model so the same model name behind
different providers is learned independently.

</details>

> Generated by Coder Agents on behalf of @deansheather.
Adds HTTP body capture under `aibridge/x/proxy/replaybody`. `NewRequest`
and `NewResponse` replace the original body with an `io.ReadCloser` that
retains read bytes in the returned `TeeBuffer`.
Request retries replay the retained bytes through `r.GetBody()`.
`TeeBuffer.Wait` returns buffered bytes without reading the original
source.

Enables full duplex so Go’s HTTP/1 server can send an early upstream
response without first draining the client’s unfinished upload.

Generated by Coder Agents on behalf of @pawbana.
…ch box (coder#31642)

The shared `Filter` renders API validation errors (for example `Query
param "resource_type" has invalid value`) under its search box, but the
message was not programmatically linked to the "Filter" textbox, so
screen readers could not tell which field was in error (WCAG 3.3.1).

The error span now gets a `useId` id, and the search box references it
with `aria-describedby`. `SearchField` gains an `aria-describedby` prop,
which it forwards to the input. This covers every page that uses
`Filter` (audit log, users, workspaces, templates, and so on).

Closes DEQ-495

| Ticket | UI surface | Visible change |
|---|---|---|
| [DEQ-495](https://linear.app/codercom/issue/DEQ-495) | `Filter` search
box (reported on `/audit`) | None (ARIA only) |

<details>
<summary>Grouping and decision log</summary>

- Batch `form-error-field-not-identified` has three tickets with three
separate root causes, so it ships as three independent PRs: this one
(DEQ-495, Filter), login password validation (DEQ-536), and template
builder customizations (DEQ-38).
- I used `aria-describedby` rather than `aria-errormessage`. The message
renders whenever `error` is set, but `aria-invalid` is set only for API
validation errors, and `aria-errormessage` is ignored unless
`aria-invalid="true"`. This matches `FormField`.
- `aria-describedby` uses the same `hasError(error)` condition as the
span it points at, so it never references a missing id.
- Verified with axe-core in Storybook (`pages/UsersPageView/WithError`):
the textbox is now described by the error text and the branch adds no
violations. The `heading-order` (moderate) violation in that story also
appears on `main`.
- Pre-existing and out of scope, as follow-up candidates:
- The error span is not a live region, so it is not announced when it
appears after the debounced refetch (WCAG 4.1.3).
  - For non-validation errors the span renders empty.

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
…ith their fields (coder#31644)

On `/templates/new/builder?step=customizations`, the audit found that
Create Template sent an empty `organization_id` and showed the server
error `Request body must be valid JSON. invalid UUID length: 0`, which
names no field (WCAG 3.3.1). coder#28081 has since added client-side
validation, so that request no longer goes out. However, the inline
Organization and Description errors were still not programmatically
linked to their controls.

Both fields now render through `FormField`'s `control` prop, as
`ChatProjectDialog` does. `FormField` sets `aria-invalid` and
`aria-describedby` and renders the linked error, which matches the
step's other fields (Display name, ID, Icon).

Closes DEQ-38

| Ticket | UI surface | Visible change |
|---|---|---|
| [DEQ-38](https://linear.app/codercom/issue/DEQ-38) | Template builder
Customizations step (Organization, Description) | None (ARIA only). The
asterisk moves by less than 1px because `FormField` separates it with a
text space instead of `ml-1`, matching the other required fields. |

<details>
<summary>Grouping and decision log</summary>

- Batch `form-error-field-not-identified` has three tickets with three
separate root causes, so it ships as three independent PRs: Filter
(DEQ-495), login (DEQ-536), and this one (DEQ-38).
- Self-review flagged a first version that hand-wired `useId` and ARIA
attributes, because `FormField` already provides this (RO1/FE3). It was
replaced with `FormField`.
- The new Vitest test asserts both accessible descriptions and that
`onCreate` is not called. I removed the duplicate `onCreate` assertion
from the `MissingOrganizationError` story's `play` function (FE1).
- Verified with axe-core in `MissingOrganizationError` and
`MissingNameError`: no violations, and the organization combobox is
described by "Select an organization to continue." A pixel diff of
`MissingOrganizationError` against `main` changes 28 pixels, all on the
asterisk.
- Pre-existing and out of scope, as a follow-up candidate: while the
permitted-organizations query is loading or has failed, the Organization
field is hidden. In that state, submitting is blocked by the
required-org check with no visible error.

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
Fixes the two broken links from the [Nov 9 weekly-docs
run](https://github.com/coder/coder/actions/runs/42591777635).

## Changes

- **`docs/admin/networking/high-availability.md`**: The AWS Prescriptive
Guidance page on managed PostgreSQL for multi-tenant SaaS returns 404.
The whole guide appears to be retired (welcome page, other sections, and
PDF all 404). The link now points to [Configuring and managing a
Multi-AZ deployment for Amazon
RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html),
the AWS counterpart to the existing GCP Cloud SQL HA link.
- **`docs/install/server/openshift.md`**: Adds the equivalent [OKD build
configuration
page](https://docs.okd.io/latest/cicd/builds/understanding-buildconfigs.html)
first, followed by the existing Red Hat OpenShift Container Platform
link. Linkspector can still check the OKD link.
- **`.github/.linkspector.yml`**: Ignores `docs.redhat.com`. Red Hat's
edge returns 403 to automated requests, including GitHub runner IPs and
headless Chrome, so the check fails intermittently.

## Why not retries?

The pinned linkspector (v0.5.6) already defaults to `retryCount: 3`, but
it only retries 429 responses and network errors. A 403 is returned
immediately, and the Puppeteer fallback only retries on thrown
exceptions. Adding 403 to `aliveStatusCodes` would apply to every
domain, so it isn't used here.

Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

Replace multiline class template literals and JSX class strings with
`cn(...)` calls containing one quoted string per logical group across
the frontend, including `cva` base classes and variants. Keep the
existing class order and grouping, and document the convention in
`site/AGENTS.md`.
…er#30060)

Fixes coder#30058.

Fixes an issue where in-flight prebuilds prevent presets from reaching their failure hard limit. `GetPresetsAtFailureLimit` now considers only completed builds (`succeeded`, `failed`, `canceled`) when evaluating consecutive failures. Pending and running builds no longer mask earlier failures, while successful and canceled builds still break the failure streak.

### Tests
- Added query tests covering in-flight builds with and without a reached failure limit.
- Added a reconciler test confirming hard-limited presets do not create additional prebuilds.
- Fixed the test helper to properly mark successful jobs as completed.
- Verified the new tests fail before the fix and pass afterward.
- All relevant tests and `golangci-lint` pass.

**Live validation:** A preset with builds failing after 90s (longer than the 60s reconcile interval) stopped after 4 failures, with no additional builds during a 20-minute observation. Previously, the same scenario produced 156 failed builds in approximately 2 hours.

### AI disclosure
Written with AI assistance (Claude Code). I reviewed the changes, ran the tests, and verified the fix on a live deployment.

Co-authored-by: Bryson Henneberger <[email protected]>
Co-authored-by: Bobby Ho <[email protected]>
…1834)

Agent Relay v0.15.0 replaced the fixed 300-second Claude Code spawn
budget with a per-pool `dispatch_deadline`
([agent-relay#147](https://github.com/coder/agent-relay/pull/147)).

- `claude-code.md`: rewrite **Build budget** (default `5m`, `10s` to
`15m`, whole seconds, can't be turned off, sent to Anthropic as the hint
TTL, needs v0.15.0) and add the field to both pool examples.
- `configuration.md`: add `dispatch_deadline` to the Claude Code pool
fields.
- `troubleshooting.md`, `monitoring/siem.md`: drop the fixed 300-second
wording.

Verification notes:
- Checked against `internal/services/serviceclaudecoderunners`
(`parseDispatchDeadline`, `poller.go` constants) at v0.15.0 (`9b96578`).
- The old text said Agent Relay returns a missed-budget session as
**retryable**. In v0.15.0, Claude requests use `TerminalOnDeadline`
([agent-relay#138](https://github.com/coder/agent-relay/pull/138)), so a
failure at or after the deadline is nacked non-retryable. The page now
says Agent Relay "reports the failure" and doesn't claim either way.

Stack 1/5. Review and merge in order:
- coder#31834
- coder#31835
- coder#31836
- coder#31837
- coder#31838

Refs DOCS-1171

> Generated by Coder Agents.

---------

Co-authored-by: coder[bot] <137810501+coder[bot]@users.noreply.github.com>
Co-authored-by: Nick Vigilante <[email protected]>
…der#29809)

Replaces the users page filter with the unified `FilterCombobox` search
(merged in coder#29426), with a separate date picker for last seen.


- **Search:** Status (Active, Dormant, Suspended), Role, and User type
(a single Service account option; unselected matches everyone). Free
text still searches name, username, and email.
- **Last seen:** a separate `DateTimeRangePicker` with All time
(default, so every user is listed), last 24 hours, last 7 days, over 30
days, and over 90 days, plus a custom range. The "Over" presets send a
range from the Unix epoch to N days ago, so users who have never signed
in (zero last seen time) are excluded. Presets are stored in `filter` as
relative values (for example `last_seen_after:-7d`), so reloads keep the
label and shared links stay relative. The query key keeps the relative
values and each fetch resolves them to timestamps, since the API only
accepts RFC 3339. Custom ranges are stored as timestamps. The trigger
shows "Last seen" as secondary placeholder text until a timeframe is
picked, and its accessible name keeps that context afterwards ("Last
seen: Last 7 days").
- The range shares the `filter` query string with the search but is
split out and merged back on every change, so neither the range nor the
free-text search is dropped when the other changes. This follows the
pattern from coder#29120.
- `DateTimeRangePicker` gains optional `placeholder` (preset, shown in
`content-secondary` while no range is applied) and `label` props.
Existing callers are unchanged.
- `useStatusFilterMenu` is removed from the shared `UsersFilter`; the
users page was its only consumer. Groups and organization members pages
still use `UsersFilter` unchanged.

Frontend only. The existing users search already supports `status`,
`role`, `service_account`, `last_seen_after`, and `last_seen_before`.

<details>
<summary>Decision log</summary>

- **Last seen, not created:** confirmed as the timestamp the picker
represents.
- **All time as a preset:** the picker has no empty state, so All time
is a preset whose range is display-only; picking it removes both
`last_seen_*` keys instead of sending a range.
- **User type chips are label only:** the category uses `chipLabelOnly`,
so the applied chip reads `service account`.
- **One User type option:** only "Service account" is offered;
unselected means all users. A separate "Users" option was dropped for
simplicity.
- **Relative values in `filter`, not a separate `last_seen` param:**
keeps `paginatedUsers` unchanged and the URL `filter` as the single
source of the users query (review feedback from @jeremyruppel and
@DanielleMaywood). Resolving in `queryFn` rather than `queryPayload`
keeps the query key stable without a `now` anchor.
- **Backend check:** verified `searchquery.Users` parses a combined
query with quoted RFC3339 `last_seen_*` values, status, and free text.

</details>

**Verification:** `pnpm lint:types`, `pnpm check`, `pnpm lint`; Vitest
for the users, groups, organization members, and AI Gateway pages and
the date picker; Storybook tests for the users page, date picker, and AI
sessions list (new `FilteredByStatusRoleAndType` and `LastSeenRange`
stories).

---

_Generated by Coder Agents on behalf of @tracyjohnsonux._

---------

Co-authored-by: Jake Howell <[email protected]>
Co-authored-by: Jake Howell <[email protected]>
Co-authored-by: Andrew Aquino <[email protected]>
> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

Simple and boring update to all manual instances of Tailwind classes
being converted to their newer and cooler format.

<details>
<summary>Review follow-up</summary>

Retains the effective layout and text-color utilities, targets the
actual `aria-current` attribute, preserves per-series tooltip border
colors and 2px radii, and keeps license-chevron rotation transitions.
Adds a dashed-tooltip Storybook state and fixes the formatter failures.

Local validation: `pnpm format`, `pnpm check`, `pnpm lint`, 328 targeted
unit tests, 181 Storybook tests, and focused Chromium
visual/computed-style checks against the pre-PR behavior.

</details>
…er picking a preset (coder#31943)

`UsersPage > stores a picked preset in the filter as relative values`
fails on `main` since coder#29809, and blocks `test-js` on every `site/` PR
(for example coder#31942).

The test waits for `router.state` to hold the new filter, then
synchronously queries the trigger for its "Over 30 days" label. The data
router updates its state before React commits the re-render, so the
query can run while the trigger still shows the "Last seen" placeholder.
The fix awaits the label with `findByRole`. No product change; the label
does render.

Verified: the test fails consistently on `main` locally and in CI, and
passes 5 of 5 runs with this change.

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

These are already applied and are now redundant. We can be less explicit
here 🙂
> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

simple and fun replacement of `size-` class. Shouldn't make any changes
to the frontend visually 🙂
…a database error (coder#31617)

When coderd's `IsAuthorized` hits a database error, the AI Gateway
answers 403. A coderd outage therefore looks to clients like a
permission problem. The gateway can't tell coderd's own failures from
rejected requests, because coderd returns both as plain errors. Worse,
the API key and user lookups turn any database error into
`ErrUnknownKey` or `ErrUnknownUser`.

coderd now marks each database failure in `IsAuthorized` with the dRPC
error code `proto.ErrCodeInternal`, where the failure happens. This
covers the key, user, workspace, organization membership and effective
group lookups. The key and user lookups return `ErrUnknownKey` and
`ErrUnknownUser` only for `sql.ErrNoRows`. Rejections carry no code. The
gateway answers a coded error with 500 and every other error with 403.

dRPC sends the code with the error, so the protocol version doesn't
change. A gateway and coderd on different versions keep today's 403,
because the older side neither sets nor reads the code.

A connection that drops during the `IsAuthorized` call still gets a 403.
That's left for a follow-up.

`TestAuthorization_InternalErrors` covers each database failure and each
rejection on the direct, workspace token and delegated paths.
`TestServeHTTP_FailureModes` covers the gateway's status codes.

Refs AIGOV-737

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
jeremyruppel and others added 21 commits November 10, 2026 17:03
…template cards (coder#31865)

The base template card in the template builder was a `<div role="radio"
tabIndex={0}>` with its own Enter and Space handling, and it contained
the "View details" link, so axe reports `nested-interactive` on every
card.

The card now uses the shared `RadioGroupItem` in place of the hand-drawn
indicator, labelled by the template name, and `BaseInfraSelectStep`
wraps the grid in the shared `RadioGroup` controlled by
`selectedBaseId`. The group gets one Tab stop with arrow-key navigation.
The card keeps its click handler as a mouse-only shortcut with no role,
tab stop, or key handler, matching `ModuleCard` (coder#30540).

Closes DEQ-50
Closes DEQ-60
Closes DEQ-61
Closes DEQ-166
Closes DEQ-197
Closes DEQ-205
Closes DEQ-242
Closes DEQ-445
Closes DEQ-452

| Ticket | Surface |
|---|---|
| DEQ-50, DEQ-60, DEQ-61, DEQ-166, DEQ-197, DEQ-205, DEQ-242, DEQ-445,
DEQ-452 | Template builder, step 1 (pick a base template) |

<details>
<summary>Decision log</summary>

- The radio has no change handler. Clicks, Space, and Radix's arrow-key
selection all reach the card as clicks, so the card's `onClick` is the
only caller of `onSelect` and a selection is never counted twice.
Covered by `TemplateCard.test.tsx`.
- Kept the card-wide click for mouse users with an
`oxlint-disable-next-line jsx-a11y/click-events-have-key-events`
comment, as `ModuleCard` does.
- The selected radio now uses the shared style (gray border, 10px dot)
instead of the custom one (white border, 8px dot). Size and position are
unchanged. Focus moves from a ring around the whole card to a ring
around the radio, offset against the card surface.
- Clicking "View details" still selects the card on the way out, as
before and as in `ModuleCard`.
- `TemplateCard` stories render inside a `RadioGroup` decorator, which
the radio needs.
- Verified with axe-core in Storybook: `TemplateCard` Default and
Selected go from `nested-interactive` and `target-size` (1 node each) to
0. `TemplateBuilderPageView` Default goes from 2 nodes each to 0. A
pre-existing `link-in-text-block` hit in the page subtitle remains.
- Related `nested-interactive` fixes: coder#31856 (`Autocomplete`), coder#31857
(templates list), coder#31858 (audit log).

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
cmdk's `Command` root renders a visually hidden `<label>` from its
`label` prop, and it always points the search input's `aria-labelledby`
at that label. If `label` is missing, the label is empty, so the input
has no programmatic name. Deque flagged three of these search fields.
Any `aria-label` on the input is ignored whenever the root label has
text.

This sets the root label on every `Command` and `ComboboxContent` that
renders a search input:

- `ComboboxContent` forwards a new `label` prop to `Command`.
- `SelectFilter` gets an optional `searchLabel` prop, and each filter
with a search box passes one ("Search client", "Search user", and so
on).
- `Autocomplete` uses its `placeholder` as the label. That is the same
text the search input shows.
- The other call sites set `label` directly. On `UserFilter`, the
organization filter, `WorkspacesButton`, and `ModelSelector`, the input
`aria-label` moves to the root label.

Closes DEQ-81
Closes DEQ-196
Closes DEQ-376

| Ticket | Surface | Fixed in | Screenshots |
|---|---|---|---|
| DEQ-81 | Workspace sharing modal, "Search for user or group" |
`Autocomplete` |
[Linear](https://linear.app/codercom/issue/DEQ-81#comment-83d0725e) |
| DEQ-196 | AI Gateway sessions, "Search client" / "Search model"
filters | `SelectFilter` via `ComboboxContent` |
[Linear](https://linear.app/codercom/issue/DEQ-196#comment-f5b51751) |
| DEQ-376 | Create user, "Find organization" |
`OrganizationAutocomplete` |
[Linear](https://linear.app/codercom/issue/DEQ-376#comment-dd841e91) |

DEQ-81 also lists the role selects in the sharing table (elements 1 and
2). `main` already names them `Role for <name>` in
`WorkspaceSharingForm.tsx`.

Nothing changes visually. The before and after captures on Linear show
the hidden label going from empty to named, through an overlay that is
not part of the UI.

**Dropped review finding:** TN6 asked `Autocomplete` not to reuse
`placeholder` as the search input's name. I kept it, because the search
input shows that same placeholder, so the name matches the visible text.

<details>
<summary>Grouping and decision log</summary>

- **Root cause:** all three tickets come from the same cmdk behavior: an
empty root `label` that `aria-labelledby` points at. One PR fixes all of
them (48 non-test lines).
- **Why the root label and not an input `aria-label`:** cmdk sets
`aria-labelledby` after spreading props, so callers cannot override it.
An input `aria-label` only works through the accname fallback for an
empty `aria-labelledby`, and it leaves the empty `<label for>` that
Deque flagged in place. The cmdk `label` prop is the documented API, and
`CompactProjectSelector` already uses it.
- **Scope:** I fixed every `CommandInput`/`ComboboxInput` call site, not
just the three ticket surfaces, so this bug class is closed out.
- **`SelectFilter.searchLabel`:** I first reused `SelectFilter.label`.
Review pointed out that this would name the search box "Select client"
while it shows "Search client...", the same name as the trigger. A
separate prop keeps the name in line with the visible text.
- **axe in Storybook (axe-core 4.11):** on `main`, the cmdk label is
empty in `SelectFilter/WithSearch`, `Autocomplete/Default`, and
`OrganizationAutocomplete/ManyOrgs`. On this branch it holds the
expected text. Two violations remain on elements this PR does not touch
and also show up on `main`: `aria-dialog-name` on the Radix popover and
`button-name` on the `OrganizationAutocomplete` story trigger.
- **Self-review:** `frontend-review`, `frontend-deep-review` (8 roles),
and `frontend-accessibility` all pass with no remaining blocking or
should-fix findings.

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
…s in timeline breadcrumbs (coder#31942)

The build timeline's drill-down breadcrumb (`ChartBreadcrumbs`) rendered
its chevron separators as `<li role="presentation">` children of the
`<ul>`, which fails the axe `list` rule (WCAG 1.3.1).

The chevron now sits inside the preceding crumb's `<li>`, so the list
holds only real items. Lucide icons render `aria-hidden="true"` by
default, so screen readers announce a two-item list, the same as before
minus the invalid child.

Closes DEQ-10
Closes DEQ-74
Closes DEQ-470

| Ticket | UI surface |
|---|---|
| DEQ-10 | Build timeline, provisioning > apply drill-down breadcrumb |
| DEQ-74 | Build timeline, provisioning > plan drill-down breadcrumb |
| DEQ-470 | Build timeline, agent > connect drill-down breadcrumb |

No screenshots: the change is DOM-only. Before and after captures of
`NavigateToPlanStage` and `NavigateToStartStage` (dark and light) are
byte-identical.

**Verification:** axe-core 4.11 on those two stories reports `list
(serious)` on `.w-(--y-axis-width)` on `main` and no `list` violation on
this branch, in both themes.

**Dropped review findings:**

- A Vitest test asserting the list's children were all list items was
dropped. It needed DOM traversal (`closest("ul")`, `.children`), which
FE10 and TS2/TS5 flag, and a presentation `li` is invisible to role
queries, so no compliant rewrite exists. The axe check above is the
verification.

<details>
<summary>Grouping and decision log</summary>

- All three tickets point at the same element
(`ul.w-[var(--y-axis-width)]`) with the same message ("direct children
that are not allowed: [role=presentation]"), reached through different
stages. One root cause, one PR.
- The shared `components/Breadcrumb` primitive was not reused: it is a
`<nav>` of router links, while these crumbs are in-chart buttons, and
its `BreadcrumbSeparator` also uses `<li role="presentation">` (it adds
`aria-hidden="true"`, so axe skips it).
- Moved the chevron into the crumb's `<li>` rather than adding
`aria-hidden` to the separator, so the list holds only list items with
no presentation-role workaround.
- Dropped the `React` default import: its only value use was
`React.Fragment`; `React.FC`/`React.HTMLProps` resolve through the
`@types/react` global namespace, as in most of `site/src`.
- `size-[14px]` became `size-3.5` (same 14px) per deep-review SA1.
- Self-review: frontend-review FE1 to FE10 pass; frontend-deep-review
has no blocking or should-fix findings left; frontend-accessibility
`list` passes, and the remaining story-level page rules (`region`,
`landmark-one-main`, `page-has-heading-one`) are out of scope.
- Pre-existing note: the back crumb button has no custom focus-visible
style.

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
…der#31940)

The `DateTimeRangePicker` trigger acts like a select, but screen readers
announced it as a plain button named after its current value, with no
select role or state. It now follows the APG select-only combobox
pattern, with the popover as a dialog:

- The trigger has `role="combobox"` and a stable name: the `label` prop,
or "Time range". The visible text ("Last 24 hours") is announced as the
combobox value. `aria-expanded` reflects the open state, and
`aria-controls` points at the popover while it is open.
- ArrowDown and ArrowUp open the picker, and focus lands on the checked
quick range. The quick ranges are still a radiogroup, so the selected
state and the "n of m" position come from `aria-checked` on each radio.
- The popover dialog shares the trigger's name. The radiogroup is
renamed to "Quick ranges" so the two names don't repeat.

Every caller gets the fix: AI Gateway sessions, AI spend, and Users
"Last seen". Tests and stories that found the trigger as a button by its
value text now find the combobox by name.

Closes DEQ-184

| Ticket | Surface | Visible change |
| --- | --- | --- |
| DEQ-184 | Date range picker trigger and quick-range list (AI Gateway
sessions; also AI spend and Users "Last seen") | None. Role, name, and
keyboard only, so no screenshots. |

**Accessibility self-review** (axe-core 4.11.1, run against the Closed,
OpenShowsOnlyQuickPicks, CustomRangeExpanded, and
ListSessionsFilter/Default stories): no violations. The closed state has
no incompletes. While open, the only incomplete,
`aria-valid-attr-value`, is axe saying it can't confirm the
`aria-controls` target exists. I checked by hand that the target exists.

**Review findings not acted on:**
- TS1 and TS5 nits: existing `play` assertions in
`DateTimeRangePicker.stories.tsx` (`ClosedWithCustomRange`,
`IntraDayTriggerLabel`, `SelectQuickPick`). This PR only changed their
queries. Moving them is out of scope.
- `color-contrast` incomplete in CustomRangeExpanded: this is on main
too, in the calendar, which this PR doesn't touch.

<details>
<summary>Grouping and decision log</summary>

- One ticket, one root cause: the shared `DateTimeRangePicker` trigger.
26 non-test lines, all under `site/`.
- Options considered: (A) a combobox trigger that opens a dialog,
keeping the radiogroup; (B) A, plus converting the radios to
listbox/option; (C) closing the ticket as already fixed by coder#31656, which
moved focus onto the checked radio. A was chosen. Radios already expose
the selected state and position, and the popover also holds a calendar
and time inputs, which a listbox can't contain. C was rejected because
the trigger still had no select role or state.
- A combobox takes its name from the author, not its contents, so the
name is always `aria-label`. The old `${label}: ${value}` form tied the
name to the value. Now the name stays fixed and the value is the text.
- `aria-expanded` and `aria-controls` are set explicitly because oxlint
requires them on `role="combobox"`. Like Radix, `aria-controls` is set
only while the popover is open, so it never points at a missing id.
- Round 1 review (@chrifro): merged `main` to resolve the
`UsersPage.test.tsx` conflict, defaulted `label` in the destructuring,
made `aria-controls` conditional, named the trigger key handler, dropped
the `aria-expanded` test checks, added an ArrowUp test, and trimmed a
stale story comment.
- ArrowDown and ArrowUp open the picker, per the APG select-only
combobox. Enter and Space still open it through Radix.
- frontend-review FE1 to FE10: all pass. frontend-deep-review, 8 roles:
no blocking or should-fix findings. Three roles noted that the dialog
and the radiogroup shared a name, which is fixed. JSDoc was added on
`label`, and the trigger comment was shortened.

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
…coder#31941)

The workspace Share popover rendered its members list as two tables: a
header-only table and a scrolling body table. Screen readers could not
associate the Member and Role headers with the data cells (Deque
`table-data-multiple-combined`, WCAG 1.3.1).

`WorkspaceSharingForm` now renders one labelled table in compact mode
too. The header is sticky inside the `max-h-60` scroll area, matching
`ChatSharingPopover`. The compact branch, which duplicated the
non-compact layout, is gone.

Visible side effects: the header and body columns now line up (the Role
header was offset about 8px), and the 240px scroll area now includes the
32px header, so about half a row less is visible before scrolling.

Closes DEQ-387

| Ticket | UI surface | Screenshots |
|---|---|---|
| DEQ-387 | Workspace page, Share popover, members table |
[Before/after](https://linear.app/codercom/issue/DEQ-387/more-than-one-table-element-used-to-create-a-single-table#comment-7c3447d5),
[read-only
focus](https://linear.app/codercom/issue/DEQ-387/more-than-one-table-element-used-to-create-a-single-table#comment-2b29dda0)
|

Tests: a Vitest regression test asserts that the compact form renders
one table holding the header and member rows (it fails on `main` with
two tables). New `ShareButton` stories (`EmptyACL`, `Loading`,
`ReadOnly`, `OverflowingMembers`) give Pixel coverage of the compact
popover, which had no story. `OverflowingMembers` ends scrolled so the
sticky header is captured. `workspaceACLKey` is exported so the stories
can seed the ACL query, and `MockWorkspaceUser` and
`MockWorkspaceUserAdmin` move to `testHelpers` for both sharing story
files.

Read-only scroll area: when the viewer can't edit sharing, the compact
list has no focusable controls, so keyboard users couldn't scroll it
(axe `scrollable-region-focusable`, also on `main`). Since this PR moves
that container, it now becomes a focusable, named region in that case.
This adds an optional `wrapperProps` passthrough to the shared `Table`
primitive, with this form as its only caller.

**Dropped review findings**
- Inline the single-use `tableHeader` and `tableBody` variables (SD1):
this would re-indent about 110 unchanged lines for no behavior change.
- Replace the Vitest test with the story screenshot (TS2, TS5): one
table and two tables render identically, so a screenshot cannot catch
this regression.

<details>
<summary>Grouping and decision log</summary>

- Batch `table-data-multiple-combined` has one eligible ticket, DEQ-387,
so one PR with one root cause: the `isCompact` branch of
`WorkspaceSharingForm` wrapped `tableHeader` and `tableBody` in separate
`<Table>` elements.
- Fix follows the existing `ChatSharingPopover` pattern (one table,
sticky header, scroll wrapper on `Table`'s `wrapperClassName`). Sticky
classes go on `<thead>` once rather than on each cell.
- `aria-label` added because `site/AGENTS.md` requires every table to
have one.
- axe-core 4.11 on both stories, dark and light themes, 1280px and
320px, before and after:
- `th-has-data-cells` (needs review on `main`, on the header-only
table): gone.
  - Table count: 2 on `main`, 1 on this branch.
- Unchanged and pre-existing, out of scope: `aria-dialog-name` on the
popover, `empty-table-header` on the actions column, `heading-order` in
the empty state, and needs-review `aria-valid-attr-value` and
`color-contrast` (rows below the scroll fold).
- Keyboard tab order through the popover is unchanged.
- Self-review: frontend-review, frontend-deep-review (8 roles, 2
rounds), frontend-accessibility. All blocking and should-fix findings
fixed except the two dropped above.
- Round 2 (reviewer feedback): shared fixtures, scrolled story,
`Loading` and `ReadOnly` stories. The `ReadOnly` story exposed the
read-only keyboard scrolling gap, fixed with `wrapperProps` set only
when compact and read-only (no extra tab stop when row controls exist).
Tab reaches the region, End scrolls it, and the default focus ring is
visible. Third deep-review round: remaining findings fixed (region name
now matches the table, the `ReadOnly` play ends focused).

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
…ex migration to 000641 (coder#31997)

coder#31766 and coder#31748 both added a `000640` migration and both merged, so
main currently has two migrations with the same number. Migrations fail
to load with `duplicate migration file:
000640_workspace_app_stats_session_ended_at_idx.down.sql`, which breaks
every test that sets up a database.

This moves the `workspace_app_stats` index to `000641`. It's a rename
only and `dump.sql` regenerates unchanged. `go test
./coderd/database/migrations/...` and the insights and dbrollup tests
pass with it.

Part of [CORE-439](https://linear.app/codercom/issue/CORE-439).
…oder#31765)

Speeds up `GetTemplateParameterInsights`, which the insights collector
runs every 5 minutes on every replica. The `@>` array join could only
hash on `name`, so every run scanned all of
`workspace_build_parameters`. Unnesting the build IDs and joining on
`(workspace_build_id, name)` lets the existing unique index serve it,
and the results don't change since each build ID shows up at most once
per group.

On 8.4M synthetic build parameters the collector's 5 minute window went
from 5,193 ms to about 31 ms. `TestGetTemplateParameterInsights` is new
and passes on both the old and new SQL. This also fixes the Prometheus
docs example, which summed per-replica copies of the same metric.

I split the `workspace_app_stats` index into coder#31766 so this one has no
migration and can be backported to 2.34 through 2.39 (2.34 to 2.38
without the docs hunk).

The pre-push hook skipped tests on this push because of a stale
`origin/main` in my checkout. An earlier full run only failed in
`agent/` and `site/`.

Part of [CORE-439](https://linear.app/codercom/issue/CORE-439).
## Summary

Updates Agent Relay documentation to reflect workspace agent lifecycle handling, startup failure behavior, and configuration changes introduced in v0.15.0 and coder/agent-relay#155.

- Clarifies that workers must wait for workspace setup using `coder_script_order`, with examples from the registry modules.
- Documents setup timeout requirements and pool-specific budgets: startup grace for Cursor and build budget for Claude Code.
- Explains startup failures and timeouts, including faster failure detection (~1 minute) and Claude Code's one-retry behavior in versions newer than v0.15.0.
- Documents the known limitation where claimed prebuilds remain `idle` after setup failures.
- Adds `--reap-startup-grace` configuration, including its 15-minute default and interaction with `dispatch_deadline`.
- Updates troubleshooting guidance with lifecycle states, failure reasons, and relevant log fields.
- Corrects Cursor deadline references and the SIEM handoff log message to `workspace built, runner handoff`.

Docs only; five files changed. No runtime behavior changes.

## Testing

- `make lint/markdown` — passed
- `make lint/emdash` — passed
- `make fmt/markdown` — completed
- Verified configuration options and failure reasons against Agent Relay source.

Refs:
- https://linear.app/codercom/issue/RELAY-67
- https://linear.app/codercom/issue/DOCS-1473
…hnology (coder#31969)

Opening a dropdown menu, such as the workspace row actions menu on
`/workspaces`, set `aria-hidden="true"` on the page root while its links
and buttons stayed focusable. axe reports this as `aria-hidden-focus`
(WCAG 4.1.2). The cause is Radix's modal default: it hides every sibling
of the menu portal.

The shared `DropdownMenu` is now non-modal by default. A menu button is
not a modal dialog under WAI-ARIA, and Radix menus still keep Tab inside
the menu and return focus on Escape. Callers can still pass `modal`.
Three follow-ups keep the behavior modal menus had:

- **Outside click:** the click that dismisses a menu no longer reaches
the element under the pointer, for mouse and touch. Before this,
dismissing a row's actions menu by clicking the row opened the
workspace. The listener is released on the next interaction, so later
clicks go through. It is skipped when the press lands outside an open
dialog or popover, because Radix closes those on that same click.
- **Dialogs opened from an item:** focus moving into a dialog an item
opens no longer counts as an outside interaction, so focus returns to
the trigger when the dialog closes. Other focus moves, such as into an
iframe, still dismiss the menu.
- **Long-press Send menu:** the Agents Send menu cancels the mousedown
that ends a long press, so focus stays in the menu. The stale
`pointerEventsCheck` workarounds in its test and in
`UserDropdownContent.test.tsx` are removed.

One remaining side effect: the page no longer scroll-locks while a menu
is open.

Closes DEQ-92

| Ticket | UI surface |
|---|---|
| DEQ-92 | Every `DropdownMenu` (reported on the `/workspaces` row
actions menu). No visual change, so no screenshots. |

**Declined review finding:** a Vitest case for focus returning to the
trigger after a dialog opened from an item closes. In jsdom the case
fails on `main` too, because without close animations the menu unmounts
before the dialog records the focused element. It can't model the
browser sequence. The browser-run `SecretsPageView` `DeleteAndCancel`
story covers it, and DEQ-623 tracks the pre-existing fragility.

**Declined nit:** I did not reuse `DIALOG_SELECTOR` from
`useClipboard.ts`. It is private to that hook and also matches native
`dialog[open]`, and a shared UI primitive should not import from the
clipboard hook.

<details>
<summary>Grouping and decision log</summary>

- One ticket in the `aria-hidden-focus` batch. The audit screenshot
shows the row actions menu open, and the flagged element
`div.flex.flex-col.min-h-screen.justify-between` is the
`DashboardLayout` root that Radix's `hideOthers` hides.
- I fixed it in the shared primitive because every modal `DropdownMenu`
has the same violation.
- I considered keeping menus modal and making the hidden siblings
`inert`. Radix offers no option for that, so it would need a custom
hide-others layer.
- Round 2 (reviewer):
- The click swallow is added in `onPointerDownOutside`. In Radix 1.1.19,
menus don't set `deferPointerDownOutside`, so that handler runs on
`pointerdown` for touch too.
- Releasing the listener on a timer would let touch clicks through, so
it is released on the next click, `pointerdown`, `pointercancel`,
`contextmenu` or `keydown`.
- Radix Dialog and Popover defer their dismissal to the click and stay
open if its propagation is stopped. So the swallow is skipped when the
press lands outside one of them. The `AgentChatInput`
`LongWorkspaceNameMobile` story caught this: a menu inside a popover
must close both on one outside click.
- Verification:
- axe 4.11 on the DropdownMenu story: base reports `aria-hidden-focus`
(serious) on `#storybook-root`, the branch reports none.
- Playwright on `WorkspacesPageView` `UnfilteredSingleResult`, with
touch (`hasTouch`, `tap`) and with mouse. On the branch, the dismissing
press triggers 0 row clicks and the next press triggers 1. On the round
1 commit it was 1, then 2.
- Keyboard: Enter opens the menu and focuses the first item, Tab stays
inside, and Escape closes it and returns focus to the trigger.
- Full unit and Storybook suites pass. New `DropdownMenu.test.tsx` cases
fail without the fix.

</details>

🤖 Generated by Coder Agents on behalf of @bartekgatzcoder.
…nauts game (coder#31612)

Replaces the Codernauts intro countdown with a start screen that waits
for the player to pick a difficulty, by clicking a button or pressing E,
M, or H. The chosen level sets the touchdown limits that decide whether
a landing crashes, and the HUD velocity and yaw warnings use the same
limits.

| Level | Max velocity | Max yaw |
|---|---|---|
| Easy | 50 | 30° |
| Moderate | 30 | 20° |
| Hard (original physics) | 15 | 10° |

The levels are real buttons (shared `Button`) over the canvas, so they
are focusable and announced by screen readers. The canvas gets
`role="img"`, an accessible name, and a hidden description of the flight
controls.

<details>
<summary>Implementation notes</summary>

- `LANDING_MAX_SPEED` and `LANDING_ANGLE_TOL` are replaced by a
`DIFFICULTIES` array of `LandingLimits` (label, shortcut key, max speed,
max angle), in button order. `tryLanding` and `drawDashboard` take the
chosen limits, so the crash check and HUD warnings cannot drift apart.
- The choice lives in React state, which renders the button row until a
level is picked, plus a ref that the game loop reads, since the loop
runs outside React renders. The loop draws the title and controls help
behind the buttons while no level is chosen.
- The button row uses the `dark` theme scope because the game always
renders light on black.
- Shortcuts are case-insensitive and ignored with Ctrl, Cmd, or Alt
held.
- Tests use `userEvent` and cover: no auto-start after 60 s, clicking
the Easy button by role, the uppercase shortcut, and the velocity
warning at 20 px/s appearing on Hard only.
- Ran `pnpm check`, `pnpm lint`, `pnpm lint:design-system` (on this
folder), `tsc`, and the CoderCupPage Vitest suite locally. `main` is
merged in.

</details>

---

_Generated by Coder Agents on behalf of @bartekgatzcoder._
…uts game (coder#31613)

Stacked on coder#31612.

Adds a 5-second rewind to the Codernauts game. Pressing R plays the last
five seconds back in reverse at 2.5x speed under a VHS rewind effect and
a "REWINDING..." label, then resumes play from that moment. It works
mid-flight and after a crash, so a crashed lander can be saved. The
start screen and the canvas's hidden controls description mention the R
key, a polite live region announces "Rewinding 5 seconds" to screen
readers, and players who prefer reduced motion get the label without the
VHS effect.

<details>
<summary>Implementation notes</summary>

- The simulation step moves out of the frame loop into `updateGame(dt,
limits)`, unchanged apart from taking the limits as a parameter. Each
frame either advances the game and records a `GameSnapshot`, or, while
rewinding, steps a cursor backwards through history and restores the
newest snapshot at or before it.
- History holds every frame snapshot from the last five seconds, plus
one older snapshot so a full rewind lands exactly five seconds back.
Arrays are deep-copied with `structuredClone`; terrain is shared because
it is only ever replaced, never mutated.
- Rewind covers lander physics, fuel, the explosion, Codernauts
boarding, disembarking, and saved status, and the round-complete timer.
It is ignored on the start screen, the victory screen, while already
rewinding, and on key repeat. A resize regenerates the terrain, so it
clears the history.
- `drawVhsRewindEffect` redraws the finished frame through red and cyan
tinted offscreen copies with per-band sideways shifts and occasional
hard tears, then adds a rolling tracking-noise band, static, scanlines,
and a blue cast. The offscreen buffers are only resized when the canvas
size changes. `drawRewindLabel` draws the rewind symbol and
"REWINDING...".
- Tests use `userEvent` and cover the label and announcement appearing
during a rewind and clearing after, the lander returning to an earlier,
slower state, and rewinding after a crash to bring the lander back
before the explosion would respawn it (mutation-checked against a no-op
restore). Ran `pnpm check`, `pnpm lint`, `tsc`, and the CoderCupPage
Vitest suite locally.

</details>

---

_Generated by Coder Agents on behalf of @bartekgatzcoder._
)

`-c/--column` only affects table output, but it was silently ignored
with `-o json` or on commands whose default format is text, such as
`coder organizations show`.

A root middleware next to `PrintDeprecatedOptions` now prints `WARN:
--column only applies to table output; add -o table to use it` to stderr
(via `cliui.Warn`) when `-c` is passed explicitly and the resolved
output format isn't `table`.

**Behavior change:** New stderr warning in that case only.
Stdout, exit codes, and behavior are unchanged.
No warning when `-c` isn't passed, when output is `table`, or on
commands without `-o`.

<details>
<summary>Decisions</summary>

- Checked special cases: `users suspend/activate` has `-c` but no `-o`
(no warning); `features list` declares its flags directly (still
matched); `templates versions list` only changes the default columns (no
false positive).

</details>

Closes [CLI-30](https://linear.app/codercom/issue/CLI-30)

_This PR was generated by Coder Agents on behalf of @nickvigilante._

---------

Co-authored-by: Samuel Volin <[email protected]>
…oder#31856)

The Autocomplete clear control was a `<span role="button" tabIndex={0}>`
nested inside the trigger `<button>`, which axe reports as
`nested-interactive`.

It is now a real `<button type="button" aria-label="Clear selection">`
rendered as a sibling of the trigger inside a `relative` wrapper, and
absolutely positioned over a 24px spacer kept in the trigger so the
layout is unchanged. The `className` prop moves to the wrapper; every
non-inline caller only passes width classes. The inline search mode is
untouched.

Closes DEQ-511

| Ticket | Surface |
|---|---|
| DEQ-511 | Workspace sharing dialog user/group picker (shared
`Autocomplete`, also used by template permissions, chat/project sharing,
and AI settings ACL dialogs) |

<details>
<summary>Decision log</summary>

- `stopPropagation()` removed from the clear handler: it only existed to
stop the click reaching the trigger. Callers' ancestors were checked;
none has a click or pointer handler, and the button is `type="button"`
so enclosing forms don't submit.
- The clear button's `right-[33px]` is the trigger's 1px border, 12px
`px-3`, and 20px chevron box.
- `ProjectAccessDialog` no longer passes `clearable={false}`, which only
existed to avoid the nested button, and the now-unused `clearable`
pass-through on `UserOrGroupAutocomplete` is removed.
- No focus restoration after clearing (no extra ref). Focus drops to the
body when the clear button unmounts, which matches current `main`
behavior.
- Clicking clear while the dropdown is open now also closes it, since
the button is outside the popover trigger.
- The `nested-interactive` batch also covers the templates list, audit
log, and template builder base-template cards; those ship as separate
PRs. The "Select modules" tickets were already fixed by coder#30540.

</details>

🤖 Generated by Coder Agents on behalf of @jeremyruppel.
…der#30122)

The API reference is generated from Swagger comments and struct tags,
and several `enums:"..."` tags narrowed a named enum type, so the docs
omitted values the server returns. For example, `User.status` listed
only `active` and `suspended`, not `dormant`, and
`TemplateVersion.warnings` listed `DEPRECATED_PARAMETERS`, which is not
a value of the type.

Remove 34 `enums` tags that narrow or duplicate a named type so the
referenced type's full value list is used. Tags that describe an
intentional subset stay: ACL role fields (which omit the `""` deleted
sentinel used only in update requests), `APIKey.scope`, and plain-string
fields. `Template.provisioner` keeps its tag because `.swaggo` replaces
`ProvisionerType` with `string`.

Also fix enum defects that break code generators:

- The provisioner jobs and daemons `status` query parameters listed
their enum twice (Swagger 2.0 requires unique `enum` items) or with the
wrong type. Both are now `[]codersdk.ProvisionerJobStatus` and
`[]codersdk.ProvisionerDaemonStatus`, matching what each handler parses,
including comma-separated values. The daemons route previously
documented job statuses, which the handler rejects with a 500.
- Replace the `_` zero placeholder of `WatchErrorCode` with `iota + 1`,
so the spec no longer lists 0 or `x-enum-varnames: ["_", ...]`. Wire
values are unchanged.

Where the narrowed tag hid values the server returns, the SDK type now
includes them: `LoginTypeOAuth2ProviderApp`, `BuildReasonAutodelete`,
and `MissingTemplateParameter` widen the generated TypeScript unions.
The dashboard attributes `autodelete` builds to Coder like other system
builds. `APIKey.login_type` and `AuthorizationCheck.action` set explicit
examples so the generated samples stay representative.

`TestSwaggerEnumsNotNarrowed` fails when a property's enum list drops
values of its named type (other than the 15 allowlisted intentional
subsets), lists a value the type lacks, or repeats a value.

Part of DOCS-1122, split from coder#30121.

---
🤖 Built with AI assistance.
> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.

MUI has been gone for awhile now. About time we nuke these instances 🙂
…r#31932)

Workspace, build, and agent API responses (`/workspaces`,
`/workspacebuilds/{id}`, `/workspaceagents/{id}`, and so on) returned
agent environment variable values in plain text. Template authors often
pass credentials such as API tokens through `coder_env`, so anyone who
could read the workspace could read those secrets.

`db2sdk.WorkspaceAgent` now replaces every non-empty value with
`***REDACTED***` and keeps the keys. This is the same marker the support
bundle (`sanitizeEnv`) and the agent `/debug/manifest` endpoint already
use. The agent still gets the real values through its manifest
(`db2sdk.WorkspaceAgentEnvironment`), and nothing in the CLI or frontend
reads these values from the API.

Every value is redacted because neither `coder_env` nor
`coder_agent.env` in the Terraform provider has a sensitive flag, and
`proto.Env` has no field to carry one. Selective redaction would need
changes to the provider, the proto, and the database.

## For changelog

- Agent environment variable values are redacted in API responses
(coder#31932)

> Workspace, workspace build, workspace agent, and template version API
responses now return `***REDACTED***` for every non-empty agent
`environment_variables` value. Keys and empty values are unchanged. The
agent still receives the real values, so workspaces behave as before.
  >
> Migration: Update scripts and integrations that read agent environment
variable values from the API or from `coder list -o json`. Read the
values inside the workspace instead.

Closes ENG-1505 (coder/security#51)

<details>
<summary>Decision log</summary>

- Confirmed the leak on `main` (e1c3a21): `db2sdk.WorkspaceAgent`
copied `dbAgent.EnvironmentVariables` straight into
`codersdk.WorkspaceAgent.EnvironmentVariables`. Every API path that
returns an agent goes through this function.
- Redact all non-empty values, not just some. There is no secret or
non-secret marker in `terraform-provider-coder` v2.20.0 (`coder_env` has
only `agent_id`, `name`, `value`, `merge_strategy`; `coder_agent.env` is
a plain map), and name heuristics fail in both directions.
- Use `***REDACTED***` to match the existing support bundle and
`/debug/manifest` redaction. Empty values are kept, which also matches
existing behavior.
- Redact in the SDK converter only, so the agent manifest path is
unaffected.
- Regression test `TestWorkspaceAgent/RedactsEnvironmentVariables`
covers the workspace, workspace agent, and workspace build endpoints. It
fails without the fix.

</details>

> Generated by Coder Agents on behalf of @deansheather.
Follow-up to coder#31885, stacked on its branch.

Remove 236 redundant `border-0` declarations that repeat Tailwind
Preflight's zero-width border default, including resets immediately
followed by directional borders. Retain 27 resets that suppress borders
supplied by components, variants, or descendant styles, and remove two
obsolete MUI/Preflight comments. No visual changes are intended.

Validated with agent-browser across 240 stories at desktop and mobile
widths in both themes. All 40 before/after screenshot comparisons are
pixel-identical. Also checked the embedded mobile combobox panel after
retaining its required reset. All 467 tests in the 24 directly affected
test files pass; the combobox's 194 tests pass after the review fix.
Formatting, Biome, full frontend lint/type/compiler checks, and frontend
self-reviews pass.
Stacked on coder#31888; targets `jakehwll/remove-redundant-border-zero`.

Remove 364 redundant `border-solid` utilities across 223 files, relying
on Tailwind Preflight's solid border default. Keep the 11 rules that
override `border-none` on subtle buttons and tab triggers, or replace
the devcontainer card's dashed error border. Remove empty class
arguments and the resulting single-expression `cn()` wrapper.

Validation: agent-browser audited 294 stories (1,690 matching elements)
without computed border changes; all 88 before/after screenshots were
pixel-identical across desktop/mobile and dark/light themes. Format,
Biome, lint, TypeScript, React Compiler, and all eight frontend review
roles passed. Existing affected tests: 613 passed; 17 failures in
ChatTopBar and WorkspaceParametersPage reproduced identically on the
untouched parent commit.
Adds `--ai-gateway-embedded-enabled` /
`CODER_AI_GATEWAY_EMBEDDED_ENABLED` (default `true`) so standalone-only
deployments can stop `coderd` from starting the in-memory AI Gateway.

`CODER_AI_GATEWAY_ENABLED` stays the global switch: the AI Gateway
entitlement, `/api/v2/ai-gateway/serve`, and cost-control metrics still
depend only on it. The embedded daemon now starts only when both options
are `true`.

| `ENABLED` | `EMBEDDED_ENABLED` | Result |
|---|---|---|
| `true` | `true` | Unchanged |
| `true` | `false` | No embedded gateway; standalone gateways keep
working |
| `false` | any | No AI Gateway |

Refs AIGOV-514

## Open questions for reviewers

- **Coder Agents does not work with the embedded gateway disabled.**
`chatd` still starts, but model calls fail with "AI Gateway transport
factory is not configured" because there is no in-process transport.
AIGOV-597 (routing Agents through standalone gateways) was canceled. The
docs and option help state that Agents requires the embedded gateway. Is
that acceptable, or should `chatd` also be turned off in this mode?
- **Option name:** the ticket proposed
`CODER_AI_GATEWAY_EMBEDDED_ENABLED` tentatively. OK to keep?

## Verification

```
$ go test ./cli/ -run 'TestServer_AIGateway' -count=1
ok      github.com/coder/coder/v2/cli   0.518s
$ go test ./enterprise/coderd/ -run 'TestAIGatewayServe' -count=1
ok      github.com/coder/coder/v2/enterprise/coderd     0.755s
```

`TestServer_AIGatewayEmbedded` fails when the new check is removed.

<details>
<summary>Implementation notes</summary>

- `codersdk/deployment.go`: new option and
`AIBridgeConfig.EmbeddedEnabled` field; updated `--ai-gateway-enabled`
description.
- `cli/server.go`: outer `if Enabled` sets up cost-control metrics and
the blocked-users collector (the standalone `/serve` endpoint uses these
too). Inner `if EmbeddedEnabled` creates the daemon, registers the
in-memory handler, and adds its cleanup.
- `cli/server_test.go`: `TestServer_AIGatewayEmbedded` covers the three
modes by checking for the embedded daemon's startup log.
- `enterprise/coderd/aibridgeserve_test.go`:
`TestAIGatewayServeEmbeddedDisabled` checks the entitlement and `/serve`
still work with embedded disabled.
- `docs/ai-governance/ai-gateway/standalone.md`: new "Disable the
embedded gateway" section.
- Remaining files are generated by `make gen`.
- Found during review: keeping metrics inside the embedded check would
have dropped cost-control metrics for standalone gateways.

</details>

---

Generated with Coder Agents; reviewed, revised, and verified by
@mollymaefraser.
@ibetitsmike ibetitsmike added the sync Upstream sync label Nov 12, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T13:06:31.651856Z 09e80ef PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09e80ef54c

ℹ️ 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".

Comment on lines +97 to +98
- name: Upload failed test db dumps
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Upload failed test DB dumps after failures

When the Test with PostgreSQL Database (Linux) step fails, this dump-upload step is skipped because it has no status condition and GitHub Actions applies the default success() check; the preceding failure-report step does not restore the job to a successful state. Consequently, the new self-hosted workflow never preserves its *.test.sql diagnostics in the exact failure scenario they are intended for. Add an appropriate failure() or !cancelled() condition, as documented in GitHub's status-check semantics.

Useful? React with 👍 / 👎.

Comment on lines +147 to +151
return (
parseLastSeenRange(values, now) ?? {
...allTime.range(now),
preset: ALL_TIME_PRESET_ID,
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve one-sided last-seen filters in the picker

When a bookmarked or manually entered query contains only last_seen_after or last_seen_before, the API still applies that bound, but this fallback presents the picker as All time. UsersPageFilter also removes these keys from the combobox value, so the page silently remains filtered while giving the user no indication of the constraint and no direct way to clear it. Represent one-sided ranges explicitly rather than treating every incomplete range as all time.

Useful? React with 👍 / 👎.

Comment on lines +887 to 891
onPromoteQueuedMessage={
canUpdateChatQueue ? onPromoteQueuedMessage : undefined
}
onEditQueuedMessage={onEditQueuedMessage}
onEndQueuedMessageEdit={onEndQueuedMessageEdit}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Gate queued-message editing on update permission

When the viewer owns the chat but canUpdateChat is false, delete and promote are correctly hidden, but the Edit and Cancel edit callbacks are still passed through. Clicking Edit immediately sends the queued-message editing: true mutation, so a user in this explicitly supported permission state can enter the editing flow only to receive a rejected request and have the composer revert; an existing edit similarly exposes a Cancel action that cannot succeed. Apply canUpdateChatQueue to these two callbacks as well.

Useful? React with 👍 / 👎.

- ContextUsageIndicator: restore the fork's ContextIssueIndicator badge
  definition that the auto-merge dropped, keeping the agent-definitions
  trigger count working.
- ContextResourceTree: ContextResourceTreeItem accepts children again
  (optional, rendered under the row) so the fork's agent-definition
  warnings stay indented under their item; upstream consumers are
  unaffected.
- ContextUsageIndicator test: render described-row scenarios through
  renderComponent; upstream's restructure requires an ancestor
  TooltipProvider for described rows, which the old fork tree used to
  provide itself.
- FileReferenceChip: restore indentation lost during conflict resolution.
- swagger_test: allow the intentional UpdateChatWakeupRequest.status
  subset (active, paused, canceled); the PATCH handler rejects every
  other value, including the system-set completed.
@ibetitsmike
ibetitsmike merged commit 68a74bc into main Nov 12, 2026
9 checks passed
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

This PR merges upstream coder/coder 0a7ef88 into the fork and resolves the conflicts reported in #180. It was merged with a merge commit, so upstream history is preserved.

Merge gates on head 12ab1fd:

  • fork-ci run 43226839970 passed, and all check runs on the head passed.
  • Local validation passed in the ops slot: chatd Go tests (20 of 20 packages), plus site tsc, vitest, biome and oxlint.
  • chatdmig route is clean. 000641 is routed to core, so no override is needed.
  • The branch is 0 commits behind main.

Codex left 3 P2 findings. They concern upstream code this merge brings in, and the fork does not patch upstream code, so all 3 are left as they are.

@ibetitsmike
ibetitsmike deleted the mike/sync-upstream-0a7ef88af9 branch November 12, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sync Upstream sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sync: upstream 8fca118991 conflicts