feat(agent): upgrade Codex to version 0.146.0 and implement version checks at startup

This commit is contained in:
HouYunFei
2026-07-31 10:15:33 +08:00
parent afc7bfebaf
commit 3c6af91e8d
9 changed files with 1627 additions and 24 deletions
+2
View File
@@ -9,6 +9,7 @@ import type { AgentAttachment, AgentPermissionMode } from "../agent/types.js";
import { CanvasSession } from "../canvas/session.js";
import { DEFAULT_PORT, ensureSiteWorkspace, loadConfig, saveConfig, updateSiteWorkspace, type CanvasAgentConfig } from "../config.js";
import { logger } from "../utils/logger.js";
import { checkVersions } from "../version-check.js";
/** 启动仅监听本机的 Canvas Agent HTTP 服务。 */
export function startHttpServer() {
@@ -223,6 +224,7 @@ export function startHttpServer() {
app.listen(port, "127.0.0.1", () => {
console.log("Infinite Canvas Agent");
checkVersions();
console.log(`Local URL: ${config.url}`);
console.log(`Connect token: ${config.token}`);
console.log("Codex MCP is not installed by this command.");