Skip to content

[Server] Log filesystem failures in FileSessionStore - #41

Closed
chr-hertel wants to merge 3 commits into
mainfrom
fix/issue-23-filesession-logging
Closed

[Server] Log filesystem failures in FileSessionStore#41
chr-hertel wants to merge 3 commits into
mainfrom
fix/issue-23-filesession-logging

Conversation

@chr-hertel

Copy link
Copy Markdown
Owner

FileSessionStore now takes an optional PSR-3 logger (defaulting to NullLogger, matching the SDK convention) and logs a warning when a filesystem operation fails in a way that loses data: failed mkdir, session file read/write/move failures, failed unlinks, and opendir failure during GC. Benign race suppressions (e.g. filemtime on a concurrently deleted file) keep their @.

Closes #23

Note: expect a small merge overlap with the #24 PR, which also touches gc() in this file — this change only adds a log line at the top of gc(), so the conflict should be trivial.

Confidence: 9/10 — mechanical change with targeted tests for read, write, and GC failure paths plus a happy-path silence check; permission-based tests skip gracefully when running as root.

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-23-filesession-logging branch from 01dca94 to 5c8d6dc Compare August 29, 2026 08:30
@chr-hertel

Copy link
Copy Markdown
Owner Author

Closed upstream by modelcontextprotocol#488

@chr-hertel chr-hertel closed this Sep 4, 2026
@chr-hertel
chr-hertel deleted the fix/issue-23-filesession-logging branch September 4, 2026 23:38
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.

[B9] Error suppression as flow control

1 participant