fix(doctor): fallback to environment-honouring Repo constructor for linked worktrees (#1931)

Analysed against 2943c31b1 file changedby teddiesloco
Open PR on GitHub

Change-risk score

3.2out of 10Below typical
Repository health
1.6to1.6base against this head

This change sits in the bottom third of this repository's own risk distribution. It is riskier than 6% of this repository's own commits.

No changed file lost health in this diff. Nothing outside this PR depends on a contract it changed.

Files changed
1
in this diff
Contracts changed
0
removed or signature
Outside callers
0
not in this diff
Findings added
1
3 resolved

Blast radius on the repo map

Every file in the repository, grouped into its own directories and sized by lines. The ones this PR changes are lit, and everything that imports them is marked.

packagestestsapi-clientclicoreserveruivscodewebunitsrcsrc/repowis…src/repowise/coresrc/repowise/server__tests__srcsrcwebviewsrccligenerationhealthingestionpersiste…servertest_pro…workspaceagent_targ…commandsanalysisgenerationingestionworkspacemcp_serverroutersc4graphworkspacecomponen…mcp
changed, health fellchanged, health rosechanged, health heldimports a changed fileuntouchedchanged by this PR

Drawing 3,402 of 3,821 files at a readable size, grouped by directory and sized by lines of code. 1 changed here reach 2 more by import. 419 are too small to see at this width, which is what the frame below is for.

Inside packages/cli/src/repowise/cli/commands

augment_cmddoctor_cmdgenerate_cmdhealth_cmdinit_cmdupdate_cmdask_cmd.…claude_m…context_…correcti…costs_cm…coverage…dead_cod…decisi…delete…distil…expand…export…export…hook_cmd.pyimpacted_t…login_cmd.…mcp_cmd.pyreindex_cm…restyle_cm…risk_cmd.pysaved_cmd.pysearch_cmd.pysecurity_cmd.…serve_cmd.pystatus…symbol…uninst…upgrad…watch_cmd.…whats_new_…why_cmd.pyworkspace_…_shared…bas…command.pydecisio…fast_lo…glob_re…read_sk…read_state.…rep…search.pyserv…wro…__…ad…repo_checks.pych…command.pyengine.pycommand…pe…refacto…sum…tre…command.pygen…persistence…reporting.pyworkspace.pycommand.pydeterministi…increm…persistence.pyreporting.pyslot_…works…

88 files, 1 changed by this PR and 2 that import one. Click any directory above to frame it instead.

Changed

What this PR added, and what it took away

Introduced findings are the ones inside the lines this PR added, not the file's existing ones. The resolved column is the only place in the product that lists them.

Introduced (1)
  • lowerror handling
    packages/cli/src/repowise/cli/commands/doctor_cmd/repo_checks.py:81

    broad `except Exception` catches unrelated errors and can hide bugs

Resolved (3)
  • function hotspot
    packages/cli/src/repowise/cli/commands/doctor_cmd/repo_checks.py
  • dry violation
    packages/cli/src/repowise/cli/commands/doctor_cmd/repo_checks.py
  • io in loop
    packages/cli/src/repowise/cli/commands/doctor_cmd/repo_checks.py

Who else knows this code

The primary author of each changed file by share of its recent commits, mined from git history. Advisory: it says who has context, not who must review.

  • packages/cli/src/repowise/cli/commands/doctor_cmd/repo_checks.pyRaghav Chamadiya 69% of 16 commits

Tests that cover this change

Test files that import a file this PR changes. Not a coverage measurement: it is the import graph, so it says which tests are worth running, not which lines they reach.

  • tests/unit/cli/test_agents_cmd.py
  • tests/unit/cli/test_doctor_embed_recipe.py
  • tests/unit/cli/test_doctor_fts_drift.py

Get this on your own pull requests

This page came from an index of repowise-dev/repowise. No model calls, no configuration, and it refreshes on every push. Install the bot and every pull request gets one of these.

fix(doctor): fallback to environment-honouring Repo constructor for linked worktrees (#1931) · repowise-dev/repowise #1952 · Repowise