paperclip/server/src
nickyleach c66868abb9 refactor(server): move the steering queue mutation into the wake-queue module
The steering route kept the identity lifecycle, the row locks, the
acknowledgement replay checks, the provider steering call, the queue
removal, the wake cancellation, and the run acknowledgement write inline.
Move that logic into createQueuedCommentQueue as steerQueuedWakeComment,
the fourth mutation on the same queue adapter. The route now keeps only
authorization, validation, issue access, error mapping, the activity log,
and the response shape.

The three identity calls that must run before or after the module's own
transaction (reserveSteeredIdentity, reconcileSteeredIdentity,
rejectSteeredIdentity) stay on the root database handle, so a lost
response after the final queued message still resolves to a durable
idempotency record instead of a second steer. The module reserves the
identity itself; no caller-supplied pending identity id crosses the port.

Delete lockQueuedCommentState and assertQueueMutationTarget from the route
now that steering is their only caller. buildQueuedCommentQueue stays,
since the read-only queued-comments route still needs it.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-10 23:14:39 +00:00
..
__tests__ feat: allow operator UI snippets on Cloud instances (#13168) 2026-09-10 15:30:36 -07:00
adapters fix: repair runner configuration, macOS execution, and artifact galleries (#13062) 2026-09-08 19:10:09 -05:00
auth feat(runner): add Codex-native application integration (#12591) 2026-08-31 14:38:38 -05:00
built-ins/agents Remove cheap model profiles (#12683) 2026-09-01 14:57:38 -05:00
http feat: add experimental native chat connectors (#13038) 2026-09-10 10:06:45 -05:00
lib perf(server): reduce issue detail request overhead (#10414) 2026-08-11 14:39:23 -04:00
middleware feat(server): accept a Cloud control assertion on the task-drain endpoint (#13125) 2026-09-10 11:56:28 -07:00
modules refactor(server): move the steering queue mutation into the wake-queue module 2026-09-10 23:14:39 +00:00
onboarding-assets feat(onboarding): first task opens as a chat with a chief of staff (#13068) 2026-09-08 20:19:14 -07:00
realtime feat: add experimental native chat connectors (#13038) 2026-09-10 10:06:45 -05:00
routes refactor(server): move the steering queue mutation into the wake-queue module 2026-09-10 23:14:39 +00:00
secrets
…
services feat(server): accept a Cloud control assertion on the task-drain endpoint (#13125) 2026-09-10 11:56:28 -07:00
storage
…
types feat(server): accept a Cloud control assertion on the task-drain endpoint (#13125) 2026-09-10 11:56:28 -07:00
vendor/paperclip-runner feat: add experimental native chat connectors (#13038) 2026-09-10 10:06:45 -05:00
agent-auth-jwt.ts fix(server): align agent run JWT default TTL with documented 48h default (#10176) 2026-08-12 16:44:20 -07:00
app.ts feat: allow operator UI snippets on Cloud instances (#13168) 2026-09-10 15:30:36 -07:00
attachment-types.ts feat: add opt-in chat provider and data foundation (#13100) 2026-09-09 13:49:12 -05:00
board-claim.ts
…
build-commit.ts
…
build-version.ts
…
chat-webhook-public-url.ts feat: add experimental native chat connectors (#13038) 2026-09-10 10:06:45 -05:00
cloud-ui-snippet.ts feat: allow operator UI snippets on Cloud instances (#13168) 2026-09-10 15:30:36 -07:00
config-file.ts fix(config): preserve extensions and guard invalid repairs (#11005) 2026-08-07 00:41:19 -05:00
config.ts feat: add experimental native chat connectors (#13038) 2026-09-10 10:06:45 -05:00
db-errors.ts fix(issues): make DELETE /api/issues/:id succeed for issues with dependents (#11331) 2026-08-13 12:02:15 -07:00
dev-native-runner-status.ts feat(runner): integrate Codex native execution (#12616) 2026-08-31 22:51:17 -05:00
dev-runner-worktree.ts feat(workspaces): sign the workspace login handoff and gate readiness (#11671) 2026-08-19 02:37:02 -05:00
dev-server-status.ts fix(runner): recover native sessions across restarts (#12845) 2026-09-04 15:03:53 -05:00
dev-watch-ignore.ts fix(server): ignore sibling worktrees in dev watch (#11074) 2026-08-07 18:30:16 -07:00
embedded-postgres-supervisor.ts fix(workspaces): recover degraded runtime databases (#11651) 2026-08-18 17:40:54 -05:00
env-file-policy.ts feat(cli): add isolated test-drive command (#12894) 2026-09-05 09:33:38 -05:00
errors.ts feat(artifacts): bridge Markdown work products into the document review surface (#11822) 2026-08-20 17:28:01 -07:00
first-admin-claim.ts
…
home-paths.ts
…
index.ts feat: add experimental native chat connectors (#13038) 2026-09-10 10:06:45 -05:00
instrumentation.test.ts
…
instrumentation.ts fix(observability): pin the Sentry browser SDK and gate the optional Sentry server peer on the exact version (#12270) 2026-08-27 07:20:03 -07:00
log-redaction.ts
…
paths.ts
…
peer-version-check.ts fix(observability): pin the Sentry browser SDK and gate the optional Sentry server peer on the exact version (#12270) 2026-08-27 07:20:03 -07:00
redaction.ts feat: add experimental native chat connectors (#13038) 2026-09-10 10:06:45 -05:00
runtime-api.ts
…
runtime-tools-token.test.ts feat(connections): add self-serve intent runtime (#12345) 2026-08-29 12:08:34 -05:00
runtime-tools-token.ts feat: use the responsible person's GitHub for shared agent operations (#13005) 2026-09-07 14:32:20 -05:00
sentry-dsn.ts feat(server): split the Sentry DSN into front-end and backend variables (#12678) 2026-09-01 11:02:04 -07:00
sentry.ts feat(server): split the Sentry DSN into front-end and backend variables (#12678) 2026-09-01 11:02:04 -07:00
server-info.ts
…
shutdown.test.ts fix(db): reap idle pool connections, name the pool, and end it on shutdown (#12956) 2026-09-08 08:56:39 -07:00
shutdown.ts fix(db): reap idle pool connections, name the pool, and end it on shutdown (#12956) 2026-09-08 08:56:39 -07:00
startup-banner.ts fix(security): route paperclipai CLI guidance through safe npx form (CWE-78) (#11400) 2026-08-14 22:11:16 -07:00
startup-recovery-state.ts fix(runner): recover native sessions across restarts (#12845) 2026-09-04 15:03:53 -05:00
startup-refusals.ts fix(server): stop paging Sentry for supervised boot races in managed cloud (#12772) 2026-09-03 10:02:42 -07:00
static-index-html.ts feat: allow operator UI snippets on Cloud instances (#13168) 2026-09-10 15:30:36 -07:00
static-ui-cache.ts fix(ui): keep the installed service worker fresh on parked tabs (#12198) 2026-08-25 16:12:02 -07:00
telemetry.ts
…
ui-branding.ts
…
url-utils.test.ts fix(runtime): only rewrite base-URL port for loopback hosts (#10258) 2026-08-13 09:47:13 -07:00
url-utils.ts fix(runtime): only rewrite base-URL port for loopback hosts (#10258) 2026-08-13 09:47:13 -07:00
version.ts
…
vite-html-renderer.ts fix(runner): stabilize local paid E2E recovery (#12836) 2026-09-04 11:16:20 -05:00
worktree-config.ts feat(apps): consolidate connector management (#12684) 2026-09-01 14:55:35 -05:00
worktree-seed-manifest.ts feat(workspaces): sign the workspace login handoff and gate readiness (#11671) 2026-08-19 02:37:02 -05:00