Repository navigation
docs: add Simplified Chinese README - #8
Merged
Merged
Conversation
Add a Chinese README translation and link it from the main README for easier language discovery.
phreakocious
added a commit
to phreakocious/graphify
that referenced
this pull request
May 8, 2026
…aths Field report (graphify dogfood, 2026-05-07): on a fuzzy miss (`@nonexistent`) or a `--node-kind`-zeroed listing, the call prints `session: <id>` underneath an error/empty result. Threading --session on the next call resumes a cursor that didn't move, so the line is noise on a row the agent can't act on. Rule: print session-id only when the call produced something pickable (node, non-empty listing, pivot). On hard misses (resolver returned no candidates → "no node matches" error, --node-kind filter zeroed the listing), drop it. Lap-22 disambig affordance preserved: disambig listings have items and ARE chainable via `[N] --session <id>`, so they keep the line + pick hint. 3 tests in test_navigate.py: - test_session_id_suppressed_on_resolver_miss - test_session_id_suppressed_on_kind_filter_zeroed_listing - test_session_id_kept_on_disambig_listing_with_pickable_rows (regression guard for lap-22b) Co-Authored-By: Claude Opus 4.7 <[email protected]>
phreakocious
added a commit
to phreakocious/graphify
that referenced
this pull request
May 8, 2026
When the indent-walker returns 1-3 lines but the graph stamped a much longer source_location range (`L1796-L1812` → 17 lines), the rendered body is misleading: the agent reads "1 lines" and concludes the function is one line long. Most plausible cause is a stale graph — the file content shifted (refactor, insertion above the stamp) but the cached source_location wasn't refreshed, so the walker landed on a comment/blank line and bailed at the first dedent. Add a `⚠ body walker returned N line(s) but the graph said M` line under the body header when: - the stamped range is `L<a>-<b>` with b-a+1 >= 6 - the walker's visible line count is <= 3 AND less than half the stamped count - truncation by --lines is NOT the cause (the truncated banner already explains that case) The warning names the next op (`graphify update .` then retry) so the agent doesn't have to guess what to do with a misleading body dump. Discovered while dogfooding the lap-27 Graphify-Labs#8 session-id check on graphify itself — `navigate "@_emit_hint" read` returned 1 line because the graph still had pre-edit line stamps; the warning now makes the staleness visible at the point of friction rather than hidden behind the top-of-output stale-graph banner that the agent was already past. Tests: warns when walker bails far short; no warning on benign truncation or well-matched walker output. 811 tests passing. Co-Authored-By: Claude Opus 4.7 <[email protected]>
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.
Summary
README.zh-CN.mdas a Simplified Chinese translation of the project READMEREADME.mdso readers can discover the Chinese versionTest plan
git diff --check