Fix percent-encoded file paths in tool args, add date fallback for filenames#16
Merged
curtisalexander merged 4 commits intomainfrom Feb 24, 2026
Merged
Conversation
…lenames - Decode percent-encoded strings (e.g. %3A → :) in tool argument values before rendering. This fixes file paths like C%3A\Users\... showing encoded colons in Edit, Read, and multi-key tool arg displays. - Fall back to file modification date when session.date_created is None, so output filenames still get YYYY-MM-DD prefixes matching the HTML header. - Add test for percent-decode behavior in render_tool_args. https://claude.ai/code/session_01UJUBqBwFHqndJeTQJY25sd
The initial fix decoded ALL string values in tool args, which could corrupt non-path content (e.g. regex patterns containing %3A). Now: - Only keys identified as paths (file_path, path, directory, etc.) get decoded via the new is_path_key() check. - New decode_path() helper strips file:/// URI prefixes before decoding, handling both Unix (/home/user) and Windows (C:/Users) paths. - Workspace directory also uses decode_path() for consistency. - Added tests for is_path_key, decode_path, file URI stripping, and verifying non-path keys are left untouched. https://claude.ai/code/session_01UJUBqBwFHqndJeTQJY25sd
List all four files that must be updated when bumping versions, and fix stale v0.4.0 example URL. https://claude.ai/code/session_01UJUBqBwFHqndJeTQJY25sd
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 free
to 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.
values before rendering. This fixes file paths like C%3A\Users...
showing encoded colons in Edit, Read, and multi-key tool arg displays.
so output filenames still get YYYY-MM-DD prefixes matching the HTML header.
https://claude.ai/code/session_01UJUBqBwFHqndJeTQJY25sd