TuanNancy
TuanNancy
排查了应用内更新 / 重启的完整链路后,我认这个问题不是 Cockpit Tools 自身的进程清理缺陷,而是当前锁定的 Tauri 版本的上游已知行为,供维护者参考: **链路** 1. 前端更新流程(`src/App.tsx` 的 `handleApplyPendingUpdate` 与 `src/components/UpdateNotification.tsx`)调用 `@tauri-apps/plugin-process` 的 `relaunch()`。 2. 该插件最终走 `AppHandle::restart()`。本项目 Cargo.lock 锁定 **tauri 2.10.3**。 3. tauri 2.10.3 的 macOS...
排查了账号编辑链路,补充一些代码层面的事实,供讨论这个字段应该如何处理: **现状(代码事实)** 1. 后端目前**没有任何更新账号 email 的命令**。`codex_account_commands` 提供的可编辑字段是:`update_codex_account_name`(显示名)、`update_codex_account_tags`、`update_codex_account_note`、`update_codex_account_egress_proxy`、`update_codex_account_api_model_mappings`、`update_codex_account_instance_access`、`update_codex_account_app_speed`——email 不在其中,所以它在编辑界面不可改不是前端遗漏,而是能力上就不存在。 2. 账号记录以 `id` 为键存储(`_accounts/.json`),`email` 是普通字段而非主键,改 email 本身不会导致记录迁移。 3. 对 **OAuth 登录的账号**,email 来自 ChatGPT 账号身份(token claims),改了记录里的 email 也不会改变实际登录身份——保持只读是有道理的(这也与 issue 里"后续授权继续使用不一致账号信息"的担忧一致:该字段对 OAuth 账号是身份事实,不是用户可维护的属性)。 4....
从 v1.4.2 源码跟踪了这条链路,补充一份代码层面的分析,供维护者与报告者参考(我没有 Windows 环境,无法直接复现,以下是纯代码推理 + 可自行验证的步骤): **失败链路(v1.4.2)** 1. `collect_codex_process_snapshot_from_sysinfo()`(process_close_lifecycle.rs:2077)先做原生快照:枚举全部 `chatgpt.exe`,逐个解析 exe 身份。**任何一个 `chatgpt.exe` 解析不出身份 → `complete = false`**,转入 PowerShell probe。 2. PowerShell probe 的脚本(process_close_lifecycle.rs:~1910)对每个 `ChatGPT.exe` 读 `ExecutablePath`,缺失再从 `CommandLine` 解析;仍拿不到合法绝对路径时设置...
跟进:注意到 v1.4.2 已采用另一条路径解决本 issue 的主要诉求——账号重新授权后,当 user 与 workspace 匹配时自动更新 email 并保留原账号与备注。相比我上一条评论提议的「仅 AT-only 账号开放 email 编辑」,重新授权自动更新覆盖面更完整(OAuth 账号的 email 本来就来自身份事实,重新登录即校正),我的提议作为补充场景价值有限,可以搁置。 若后续仍遇到 AT-only(个人访问令牌导入)账号的 email 标签录错且无法通过任何授权流程校正的情况,再单独评估是否为这一小类开放标签编辑。
Taking this one. Plan: the context-menu model already subscribes `unifiedTabsByWorktree` (menu-scoped), and every `agent-session` tab carries the Orca session id in `entityId` (`openAgentSessionTab` in the shared layout commands sets `entityId:...
PR up: #44815. Both ids copy without opening or focusing the workspace — the menu-scoped tabs map already has them (`entityId` is the session id for every agent-session tab). The...
Taking this one. Plan: mirror `SourceControlDiscardDialog` — drop `initialFocus="cancel"` from `CloseTerminalDialog`'s `DialogContent` and focus the destructive Stop button via `onOpenAutoFocus` + a confirm-button ref, so Enter confirms and Esc still...
PR up: #44811. The new test fails with the focus still on Cancel (verified by stashing the fix), and the other five `initialFocus="cancel"` dialogs are untouched.
Taking this one. Plan: add a "Wrap long lines in code blocks" switch to Settings → Chat behavior, defaulting to **off** so current transcripts look unchanged for everyone who never...
PR up: #44824. Default is off (absent keeps today’s look), the transcript viewport reads the setting once and hands it to code blocks through context — no per-block store subscriptions...