-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(3.3.3): two followups from #1145 before tag cut #1147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -995,10 +995,11 @@ def tool_diary_read(agent_name: str, last_n: int = 10, wing: str = ""): | |||||||
| Read an agent's recent diary entries. Returns the last N entries | ||||||||
| in chronological order — the agent's personal journal. | ||||||||
|
||||||||
| in chronological order — the agent's personal journal. | |
| in reverse-chronological order (most recent first) — the agent's | |
| personal journal. |
Copilot
AI
Apr 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tool_diary_read’s wing normalization only treats the empty string as “no filter”; a whitespace-only wing (e.g. " ") is truthy and will currently raise from sanitize_name, which is inconsistent with the repo’s established optional-filter helper _sanitize_optional_name (it treats None or any not value.strip() as no filter). Consider using _sanitize_optional_name(wing, "wing") here to match the #1097 convention more closely.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_wing_from_transcript_path’s new “last dash-separated token” heuristic breaks existing Claude Code paths that include
-Projects-when the project directory name itself contains dashes (e.g..../-home-jp-Projects-kiyo-xhci-fix/...will returnwing_fix). Since the legacy-Projects-<name>extraction preserves hyphenated project names, prefer it when present (or at least run that match before the generic.claude/projects/-...match), and add a regression test for a hyphenated-Projects-project name.