Skip to content

feat: 改进 Linux 安装、双语 Prompt 与运行通知 - #3

Merged
GRD-Chang merged 13 commits into
mainfrom
codex/publish-20260920-prompts
Sep 20, 2026
Merged

GRD-Chang merged 13 commits into
mainfrom
codex/publish-20260920-prompts

Conversation

@GRD-Chang

Copy link
Copy Markdown
Owner

变更

本次同步更新安装、个人 Prompt 管理和运行通知,减少跨目录安装失败与分散文案的维护成本。

  • 修复源码入口的模块定位,安装、回滚、卸载和探针不再依赖外部 PYTHONPATH;限定自动 APT 准备范围,对缺失或不兼容的 GitHub CLI 提供人工准备指引。
  • 提供中英文设置及个人 Prompt 初始化、差异和预览。每种语言保留开发、修复、验收、发布四份完整主体;内部文案按职责在代码中双语配对维护,复用输出 schema 和语义校验。
  • 新 Run 固定语言及静态 Prompt 内容,动态证据仍逐次注入;更新不会覆盖个人正文。
  • 改进精简通知、恢复结果和任务开发/验收投入汇总,并补齐双语展示和回归测试。
  • CI 对纯文档及零文件变更保留轻量 quality 检查,同一 PR 的新运行取消过期检查。

兼容性:缺少所需语言或资源快照的旧 Run 明确不兼容,不自动迁移。旧版个人 Prompt 文件保留,按文档手工迁入四份新主体。

验证

  • 发布文件树与已验证的产品源码树完全一致。
  • 对应产品源码完整测试:3232 passed;补充候选文案失败边界测试:3 passed。
  • 类型检查:152 个源文件通过;同步工具回归:4 项通过。
  • 普通测试不调用真实模型。完整测试耗时 337.53 秒,超过五分钟目标约 38 秒。
  • 聚合差异检查有一处已存在的文件末尾空行提示(src/agent_run/guidance_actions.py),本次保持同步源文件不变。

此 PR 保留 subtree 提交历史,合并时请使用普通 merge,勿 squash 或 rebase。

零文件差异与纯文档变更保留 quality 并记录跳过原因,避免空变更重复安装依赖和运行全量测试。

同一 PR 的新运行取消过期运行,保留 main 与手动运行的独立检查。
Move role methods and internal Prompt contracts into packaged Markdown resources, add non-destructive initialization with read-only diff and preview, and freeze resolved static resources per new Run.
Use stable status codes and attempt identities for notification decisions while localizing human-facing copy by Run language.
Force the history-language test through the Rich terminal path and validate wrapped evidence without weakening exact plain output or JSON/audit stability.
Make concise notifications reflect actual ticket and acceptance milestones, and report manual Resume outcomes only after observable worker or controller progress. Keep formal-pass gating, stable deduplication, bounded records, bilingual copy, and existing async cleanup boundaries intact.
Reuse History semantic attempts and invocation bindings to show development and review rounds, execution time, model, and reasoning effort without replacing the existing all-agent total. Keep aggregation conservative when history links or timing are incomplete, and expose the new labels in both languages.
集中管理中英文 Prompt 与短文案,支持个人方法定制和 Run 级资源固定;按结构化事实发送精简通知,补充 Resume 结果及 Ticket 开发/验收投入汇总。保留机器字段、原始证据和既有交付边界,并补齐受管工作区错误的双语呈现。
Make source entrypoints locate `agent_run` before importing business modules, so setup, install, rollback, uninstall, and probe commands work without `PYTHONPATH` or a preinstalled package.

Limit automatic APT preparation to the declared Ubuntu 24.04/Debian 13 x86_64/aarch64 scope. Report missing or incompatible `gh` for manual official installation and capability recheck instead of planning an incompatible APT candidate. Keep Runner snapshot protection and add bounded, stage-specific build diagnostics, bilingual installation guidance, and regression coverage.
将开发、修复、验收、发布的分散指导整理为中英文各四份完整主体,并集中维护固定 Prompt 文案。保留程序对任务分支、权限、Artifact 校验和发布边界的控制,同时更新个人 Prompt 管理、文档、测试及已安装资源验证。
仅将四份可定制角色主体保留为 Markdown,内部文案按职责配对维护中英文。复用现有输出 schema 和语义校验,保留动态事实、Run 静态快照及候选安装包探针边界。

内部资源键已更新,旧 Run 不迁移。验证:完整套件 3232 项通过,补充候选文案失败测试 3 项通过,152 个源文件类型检查通过。
@GRD-Chang
GRD-Chang merged commit ec8b6b7 into main Sep 20, 2026
1 check passed
@GRD-Chang
GRD-Chang deleted the codex/publish-20260920-prompts branch October 17, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant