Commit Graph
13 Commits
Author SHA1 Message Date
fluxcdbot 71f95e7a0c chore(deploy): update cursor-agent-api-proxy image
dcr.trinitysan.by/infra/cursor-agent-api-proxy:9-b467998ba4e6fa52c0763fc583e7ce4762dbc87e -> dcr.trinitysan.by/infra/cursor-agent-api-proxy:10-15fa287e1b5ece2c00450c8c79daa344efa5dfee
2026-09-27 13:48:07 +00:00
Ubuntu bc0c9680f5 chore(deploy): raise ACP_REQUEST_TIMEOUT_MS to 1500000
Vision-heavy turns (5-image TTN extraction with structured submit) run
10+ minutes end-to-end; 300s ACP request timeout killed them mid-turn.
Matches the turn-deadline fix (TURN_DEADLINE_MS default 900s + margin).
2026-09-27 13:45:27 +00:00
Ubuntu 15fa287e1b fix(session): turn-deadline TTL separate from idle TTL
build-and-push / build (push) Successful in 3m55s
Long thinking-heavy turns (multi-image vision extraction) legitimately
run >120s without emitting chunks; the idle TTL killed cursor-agent
mid-turn, surfacing to HTTP clients as an empty assistant turn.

- TURN_DEADLINE_MS (default 900s) applies while a prompt is in flight;
  SESSION_TTL_MS (idle, 120s) applies between turns
- _touchTimer() re-arms on every session/update (chunks, thoughts)
- _finishTurn clears _promptInFlight and re-arms the idle TTL

Verified with the real 11-photo TTN replay that previously died with
'LLM stream returned empty assistant turn' after mid-turn TTL kills.
2026-09-27 13:43:58 +00:00
fluxcdbot b96824a978 chore(deploy): update cursor-agent-api-proxy image
dcr.trinitysan.by/infra/cursor-agent-api-proxy:8-23509cece5c1f17885dd830e4815f3dfd1e5fe49 -> dcr.trinitysan.by/infra/cursor-agent-api-proxy:9-b467998ba4e6fa52c0763fc583e7ce4762dbc87e
2026-09-27 12:08:26 +00:00
Ubuntu b467998ba4 feat(api): enforce OpenAI tool_choice contract (required/named/none)
build-and-push / build (push) Successful in 4m59s
- normalizeToolChoice maps OpenAI tool_choice values to internal shapes
- required/named: prepend a mandatory-tool directive block; buffer text
  deltas and only flush when a tool call actually arrives; on plain-text
  turn, retry in-process with a nudge block (max 2 retries) instead of
  emitting the violating text (streaming + non-streaming paths)
- none: prepend a no-tools directive
- unit tests for all new mapping/directive helpers (32 passing)

Verified live against cursor-agent ACP with model=auto: image+required
yields clean tool_calls chunks with no text pollution; follow-up turns
resolve parked MCP tool calls and retry on invalid observations.
2026-09-27 12:02:40 +00:00
fluxcdbot 706733fed3 chore(deploy): update cursor-agent-api-proxy image
dcr.trinitysan.by/infra/cursor-agent-api-proxy:7-96106c5c8ca178522d7fc26b37fbc161d5c0c73c -> dcr.trinitysan.by/infra/cursor-agent-api-proxy:8-23509cece5c1f17885dd830e4815f3dfd1e5fe49
2026-09-24 13:17:21 +00:00
fluxcdbot 23509cece5 chore(deploy): update cursor-agent-api-proxy image
dcr.trinitysan.by/infra/cursor-agent-api-proxy:6-c6cf5906d5ed9c8439e2af2763924da6817c79e4 -> dcr.trinitysan.by/infra/cursor-agent-api-proxy:7-96106c5c8ca178522d7fc26b37fbc161d5c0c73c
2026-09-24 12:32:38 +00:00
fluxcdbot 96106c5c8c chore(deploy): update cursor-agent-api-proxy image
dcr.trinitysan.by/infra/cursor-agent-api-proxy:5-57a036ba5e77419f320701b6f25c05cc2c3aa280 -> dcr.trinitysan.by/infra/cursor-agent-api-proxy:6-c6cf5906d5ed9c8439e2af2763924da6817c79e4
2026-09-24 08:23:55 +00:00
fluxcdbot c6cf5906d5 chore(deploy): update cursor-agent-api-proxy image
dcr.trinitysan.by/infra/cursor-agent-api-proxy:1-52c45e48f8f4a2c0b1a3c29c08d39a3a88e1c2d4 -> dcr.trinitysan.by/infra/cursor-agent-api-proxy:5-57a036ba5e77419f320701b6f25c05cc2c3aa280
2026-09-24 08:19:26 +00:00
Ubuntu 57ea555684 fix(flux): ImagePolicy numerical order asc for run_number tags
Was stuck on 1-* while 5-* existed in DCR; align with onboarding howto.
2026-09-24 08:19:09 +00:00
Vsevolod Sauta 5263b7c858 Document DCR Actions secrets requirement for image CI. 2026-09-21 11:09:12 +03:00
fluxcdbot 77441c87df chore(deploy): update cursor-agent-api-proxy image
dcr.trinitysan.by/infra/cursor-agent-api-proxy:latest -> dcr.trinitysan.by/infra/cursor-agent-api-proxy:1-52c45e48f8f4a2c0b1a3c29c08d39a3a88e1c2d4
2026-09-21 08:01:00 +00:00
Vsevolod Sauta 57a036ba5e Initial segregate: proxy source, deploy manifests, ImagePolicy Flux CRs.
build-and-push / build (push) Failing after 2m45s
Move workload out of infra with cursor-devbox-style GitRepository +
run_number-sha image automation.
2026-09-21 10:31:36 +03:00