Skip to content

Terminal session: a cookie the system deletes is no longer sent - #8

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/beautiful-turing-wxr303
Oct 12, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
claude/beautiful-turing-wxr303

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

The terminal renderer's session (renderers/terminal/session.mjs) stored every Set-Cookie in its jar, including the ones a system sends to delete a cookie: Max-Age=0 or an Expires date in the past, as on a logoff or a session end. The ended session cookie, or the old logon ticket, then went out again on every later request. Those cookies are now dropped from the jar, the way a browser drops them. Max-Age takes precedence over Expires, as RFC 6265 says. (The mcp-server client's jar already handles this. Its system.test.mjs covers the same case.)

  • regression test in test/terminal.test.mjs: a session cookie deleted with an Expires in the past, then a --cookie ticket deleted with Max-Age=0. It fails without the fix.
  • CHANGELOG line under Unreleased.
  • npm test passes locally (exit 0).

Security pass over the rest of the repository (round 5). The mock's static server already refuses path traversal (startsWith(root + sep)) and binds to 127.0.0.1. ci.yml is read-only (contents: read, persist-credentials: false), and no ${{ }} expression reaches a run: block. The renderers have no HTML sinks.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Te3BRpRpxNhZAYnrQL6Gdt


Generated by Claude Code

A Set-Cookie with Max-Age=0 or an Expires in the past - how a system ends
a session or drops a logon ticket - was stored in the jar like any other
cookie, so the ended session (or the old ticket) went out again on every
later request. It is dropped now, as a browser drops it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Te3BRpRpxNhZAYnrQL6Gdt
@oblomov-dev
oblomov-dev merged commit acdb744 into main Oct 12, 2026
3 checks passed
@oblomov-dev
oblomov-dev deleted the claude/beautiful-turing-wxr303 branch October 12, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants