Repository navigation
[1404] TUI 首屏显示 gfcode 版本号 - #20
Merged
Merged
Conversation
首屏页眉品牌由 gf 改为 gfcode,版本号取自 gfcode 自身 gfproject.json 的 package.version(开发态取项目层覆盖,安装态 取安装树),解析失败或缺字段时回退到 Goldfish 的 (version)。 依赖上游 PR MoganLab/goldfish#1770 的 package.version 字段支持。
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.
改动
gf pi - AI coding assistant script mode
Usage:
gf pi [options] [--] [@files...] [messages...]
gf pi auth print-api-key --provider
Options:
Directory for session storage and lookup-p, --print Print response to stdout and exit
--mode Output mode: text, json, verbose (default: verbose)
--model Model ID to use
--provider Provider to search for --model (requires --model)
--thinking Thinking level: off, minimal, low, medium, high, xhigh, max
--list-models [search] List all models with activation status (with optional search)
--proxy Proxy URL (e.g. socks5h://127.0.0.1:1080)
--tools Comma-separated list of tools
--exclude-tools Comma-separated list of tools to exclude
--no-tools Disable all tools
--no-builtin-tools Alias for --no-tools
--max-turns Maximum turns limit (0 or unset for unlimited)
--timeout Timeout in seconds for bash and HTTP (default: 600)
--session-timeout
Total session timeout in seconds (default: 0, unlimited)
-c, --continue Continue previous session
-r, --resume Select a session to resume
-n, --name Set session display name
--compact Compact latest session, then run the prompt (if any)
--no-auto-compact Disable automatic context compaction
--no-session Do not persist session
--session-dir
(overrides PI_CODING_AGENT_SESSION_DIR
and sessionDir in settings.json)
--code-review Review uncommitted changes and print a report
--simplify Review uncommitted changes for simplification (read-only)
--apply With --simplify, apply within-range changes
--staged With --code-review/--simplify, review only staged changes
--ref With --code-review/--simplify, diff against the given ref
--auto-review Inject a per-language review checklist after write/edit
--system-prompt Override system prompt
--append-system-prompt
Append system prompt section
--skill Add a skill directory or SKILL.md path (repeatable)
--skills Alias for --skill
--no-skills Disable skill loading entirely
-h, --help Show this help message
Retry:
Retriable provider errors (429/5xx/408/409/network) use the budget from
retry.provider.maxRetries in the agent config directory
(~/.gf/agent/settings.json),
falling back to retry.maxRetries when the nested section is absent. 进入 TUI 首屏,页眉品牌由
gf改为gfcode,版本号取自 gfcode 自身gfproject.json的package.version。gfproject.json:package增加"version": "2026.11.24"tui/liii/pi/tui/interactive/header.scm:gf→gfcode%pi-tool-version:通过gfproject-resolve-tool-bundle "pi"的tool_base_dir读取该目录gfproject.json的package.version,失败/缺字段时回退到 Goldfish 的(version)make-pi-header默认版本改用%pi-tool-versionmake-pi-header-test.scm、integration-test.scm、fullscreen-layout-test.scm断言gfcode v效果
依赖
依赖上游 PR MoganLab/goldfish#1770(gfproject package 增加可选 version 字段)。
测试
gf test tui/tests/全部 537 个测试通过。