You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: let urlcode test fixtures carry a cookie session between steps #811
ai-firstReduces friction for AI agents authoring URLCode projectsenhancementNew feature or requestin-progressAn agent or PR is actively working on this
This came up while building the headless-auth-profile recipe for #810. The recipe itself landed; this issue is about testing it with urlcode test fixtures.
A cookie-session lifecycle cannot be written as tests/requests.json:
A steps fixture's capture takes one single-valued response header, and docs/READINESS.md explicitly says "so not set-cookie".
No cookie jar carries cookies between steps.
So a flow of CSRF, then register or login, then a protected call, then logout has to live in a package test. urlcode audit can also never report such a project ready, because every auth: true route answers 401 without a session.
This is the owner-scoped store route behind auth, which is the normal way to hold per-user application data.
Proposed behavior and alternatives
Choose one:
(a) A per-fixture cookie jar: steps within one fixture keep and send the cookies set by earlier steps, with domain and path scoped to the test origin.
(b) Explicit capture of a named Set-Cookie value into a variable that later steps send.
In either case, captured cookie values must never be written into test output or audit reports.
Evidence
recipes/headless-auth-profile lists only extensions, validate and test in its commands, not audit. Its signed-in flow is covered in packages/auth/test/headless-auth-profile-recipe.test.ts instead. Not independently reproduced beyond that recipe.
Decision (owner, 2026-09-27): option (a), a per-fixture cookie jar. Stored cookie values are redacted from all output. The headless-auth-profile recipe will cover its signed-in lifecycle as fixtures.
ai-firstReduces friction for AI agents authoring URLCode projectsenhancementNew feature or requestin-progressAn agent or PR is actively working on this
Activity
jimhoyd commentedon Sep 27, 2026
Decision (owner, 2026-09-27): option (a), a per-fixture cookie jar. Stored cookie values are redacted from all output. The headless-auth-profile recipe will cover its signed-in lifecycle as fixtures.
Generated by Claude Code
Fixture cookie jar, init --adopt, hosted-assisted skill mode, headles…
Audit covers extension asset mounts via a per-mount declaration, so u…