Look at this branch and https://github.com/moltis-org/moltis/pull/444 and fix any…
- User
Look at this branch and https://github.com/moltis-org/moltis/pull/444 and fix any comments you see, solve them too.
Assistant
All three review comments appear to have been addressed in the latest commit (d5c5f9b5) based on the reply threads. Let me verify the actual code to confirm the fixes are properly in place.
Assistant
Now let me check the two dispatch sites to verify hook dispatch uses the sanitized name.
Assistant
Now let me check the invariant comment on the
functions_prefix.Assistant
All three review comments are already resolved in the latest commit (d5c5f9b5):
-
Double suffix stripping - Temikus correctly declined this. Single-pass is intentional to preserve legitimate names like
my_mcp_3000. Greptile agreed. -
functions_invariant comment - Added at line 56:// INVARIANT: no registered tool name starts with "functions_". -
Hook dispatch using sanitized name - Both dispatch sites (line 1057 and 1743) now derive
tc_namefromsanitized.to_string()instead oftc.name.clone().
The PR is clean — all review feedback has been addressed. There's nothing left to fix.
-
- User
Look at new comments from https://github.com/moltis-org/moltis/pull/444 fix and resolve conversations
Assistant
Two new comments from greptile (2026-03-23):
- Add invariant comment for suffix stripping — matching the
functions_invariant style - Add test for
"functions_"alone — edge case yielding empty string
Let me fix both.
- Add invariant comment for suffix stripping — matching the
Assistant
Now let me run the tests and format check.
Assistant
All 15 tests pass and formatting is clean. Let me commit and reply to the PR comments.
Assistant
Now let me reply to both review comments on the PR.
Assistant
Done. Both new review comments addressed:
- Invariant comment — Added
// INVARIANT: no registered tool name ends with _\d+to the suffix stripping block - Edge case test — Added
sanitize_tool_name_functions_prefix_alone_yields_emptytest confirming"functions_"→""
All 15 tests pass, formatting clean. Committed as
339f6533and replied to both threads on the PR.- Invariant comment — Added