feat(docs): refine Infinite Canvas usage instructions and clarify local Agent connection process

This commit is contained in:
HouYunFei
2026-07-14 16:24:22 +08:00
parent 228ca29c82
commit 7e0288d461
7 changed files with 49 additions and 156 deletions
@@ -88,7 +88,7 @@ codex plugin add infinite-canvas@infinite-canvas-local
打开 Infinite Canvas 新建画布 并连接好Codex
```
插件会优先确认当前仓库的本地画布服务是否已经运行。如果端口被占用,它会检查监听进程是否属于当前项目,避免误连到其他项目。确认或启动画布后,插件会启动本地 Canvas Agent,并打开带连接参数的新建画布 URL
插件会启动本地 Canvas Agent,读取连接地址和 token,然后在右侧打开 `https://canvas.best/` 并自动新建、连接画布。只有明确要求使用本地项目时,插件才会启动本地前端
画布打开后可以继续让 Codex 操作画布:
@@ -125,10 +125,10 @@ bun install
bun run dev
```
然后启动本地 Agent。端口不是 `3000` 时,把 `CANVAS_URL` 换成真实本地画布地址
然后启动本地 Agent
```bash
CANVAS_URL=http://localhost:3000 npx -y @basketikun/canvas-agent
npx -y @basketikun/canvas-agent
```
从 Agent 输出或 `http://127.0.0.1:17371/config` 读取本地地址和 token 后,打开: