Uh oh!
There was an error while loading. Please reload this page.
fix: the slots accept any Mapping at runtime; eight docstrings stop calling cloud tool scoping server-side - #429
Merged
Merged
Conversation
…its; eight docstrings stop calling cloud tool scoping server-side 4e9c56c widened index=/chat= to Mapping[str, Any] so the exported TypedDicts pass a checker, but _resolve_index_slot/_resolve_chat_slot still dispatched on isinstance(..., dict): a MappingProxyType or ChainMap was pyright-clean and raised "must be a string or a dict" at construction. The resolvers now narrow on Mapping — the comprehension already copies, so a read-only proxy proves the caller's mapping is never mutated. 4e9c56c corrected three of eleven "scoping is server-side" sites; the remaining eight said the same untrue thing about doc_id on cloud (its tools carry no allowlist — targeting is prompt-level, as the runtime error already explains). Deleted rather than reworded. local_chat.py's module docstring predates own-model chat over the cloud bridge; storage_path's prose now names the PathLike 5e2dc9b typed. Claude-Session: https://claude.ai/code/session_01VQ6mruXZBgw9Hjii8KPbQP
Uh oh!
There was an error while loading. Please reload this page.
rejojer added a commit
that referenced
this pull request
Aug 26, 2026
Two post-0.2.11 follow-up squashes (b9a9a3b, 174f95f) land on the review branch the same way f6fa99b did: main's tree recorded as merged, history kept, so PR #400 keeps spanning 0.2.9 → current main. Claude-Session: https://claude.ai/code/session_01VQ6mruXZBgw9Hjii8KPbQP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups to #424 / #428, from the round-10 review of #427.
index=/chat=were widened toMapping[str, Any]in 4e9c56c so the exported TypedDicts pass a checker, but_resolve_index_slot/_resolve_chat_slotstill dispatched onisinstance(..., dict)— aMappingProxyTypeorChainMapwas pyright-clean and raised "must be a string or a dict" at construction. They now narrow onMapping; the existing comprehension already copies, so a read-only proxy proves the caller's mapping is never mutated (test_slots_take_any_mapping, red on the previous head).as_*, three*_agent_config,_tool_specs) said the same untrue thing aboutdoc_idon cloud that 4e9c56c corrected at three sites — cloud tools carry no allowlist, targeting is prompt-level. Deleted rather than reworded; the runtime error already explains it.local_chat.py's module docstring predates own-model chat over the cloud bridge;storage_path's prose now names theos.PathLikethat 5e2dc9b typed.435 tests green (434 + 1); pyright on the three touched files unchanged; the without-frameworks leg simulated locally on the new test.
https://claude.ai/code/session_01VQ6mruXZBgw9Hjii8KPbQP