Skip to content

[Server] Stop Session::forget() from creating missing segments - #33

Closed
chr-hertel wants to merge 2 commits into
mainfrom
fix/issue-29-session-forget
Closed

[Server] Stop Session::forget() from creating missing segments#33
chr-hertel wants to merge 2 commits into
mainfrom
fix/issue-29-session-forget

Conversation

@chr-hertel

Copy link
Copy Markdown
Owner

Session::forget() reused set()'s loop body, so deleting a nested key vivified missing intermediate segments (forget('a.b') left a => [] behind, and clobbered non-array intermediates). Now it returns early when the path doesn't exist.

Closes #29

Confidence: 10/10 — one-line behavioral fix with regression tests; full unit suite, cs-fixer, and phpstan pass.

dependabot Bot and others added 2 commits August 26, 2026 07:45
…xtprotocol#483)

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 9.0.0 to 10.0.1.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@v9.0.0...v10.0.1)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@chr-hertel
chr-hertel force-pushed the fix/issue-29-session-forget branch from cffdb28 to 22b1818 Compare August 29, 2026 08:30
@chr-hertel

Copy link
Copy Markdown
Owner Author

Closed upstream by modelcontextprotocol#484

@chr-hertel chr-hertel closed this Sep 4, 2026
@chr-hertel
chr-hertel deleted the fix/issue-29-session-forget branch September 4, 2026 23:39
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.

[C6] Session::forget() writes while deleting

1 participant