[PF-15] Doctor first screen simplified; doctor ai uses planforge.json and planforge model flow - #45
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
chucoding
added a commit
that referenced
this pull request
Mar 18, 2026
* [PF-24] Configurable stream timeout and config merge from template JSON [PF-24] Configurable stream timeout and config merge from template JSON * [PF-24] Advisory messages, plan loading spinner, and spinner module (#43) * fix : high effort plan mode timeout (300 => 360) * refactor : print information message before run cursor sandbox * feat : add spinner in plan mode * refactor : spinner moduleration * [PF-26] Fixing planforge doctor errors on Mac (#44) * fix : planforge run in mac os * chore : Change the Planforge Doctor TC1 question to one that a real user would be likely to ask. * chore : improve CI Build error * fix : python error * chore : improve CI GuardRail * chore : CRLF => LF * fix : add codex error process (Authentication/Usage/Execution Failure) * fix : add codex error process (Authentication/Usage/Execution Failure)(python) * [PF-15] Doctor first screen simplified; doctor ai uses planforge.json and planforge model flow (#45) * feat : sync doctor ai config model * fix : improve plan mode rule * refactor : integration model selector and doctor ai * refactor : remove no use file * chore : PR writing rule change lang(ko=>en) * fix : build error * release : v0.1.8 (#46)
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.
Purpose
planforge doctor, show only mode selection (static / ai) on the first screen; remove the initial Doctor AI config (model list) block.planforge modelwhen changing models.Description
Related Notion: doctor
1. Doctor entry (first screen)
runDoctorModeSelect(), remove the block that callsgetDefaultDoctorAiConfigandprintCurrentAiConfig.run_doctor_mode_select(), remove the same block.2. Doctor ai config source
templates/doctordefault-*.json (getDefaultDoctorAiConfig)loadConfig)getDefaultDoctorAiConfig/get_default_doctor_ai_config.3. Doctor ai model selection = planforge model flow
loadModelsCatalog()fails, doctor ai exits with an error message.planforge model.--provider/--modelare only accepted if the pair exists in the catalog.Files changed
src/commands/doctor.tssrc/commands/model.tsoptions?: { preselectedMode?: string }to runModelTuisrc/config/load.tsplanforge/commands/doctor.pyplanforge/commands/model.pypreselected_modeto _run_model_tuiHow to test
planforge doctorin a TTY. Confirm that only the mode list (static / ai / Quit) is shown, with no Doctor AI config block at the top.planforge doctor→ choose ai (orplanforge doctor ai). Confirm "Doctor AI config (planforge.json)" and that planner/implementer match planforge.json.planforge modelruns twice, then the Action menu appears again.packages/core/models.json, then runplanforge doctor ai. Confirm it exits with a message like "doctor ai uses the same model catalog as planforge model...".planforge doctor ai --provider claude --model claude-haiku-4-5and confirm tests run. Run with a provider/model not in the catalog and confirm it fails with a "Check models.json catalog" (or similar) message.Review Requirement
Additional Info
.cursor/rules/node-python-symmetry.mdc: both cli-js and cli-py updated.