Agent SkillsNiall-Young/Canvasight › canvasight-run

canvasight-run

GitHub

处理Canvasight Run输出为Chat跟进。涵盖原生桥接直接接收、浏览器回退队列认领及等待机制,并处理传输关闭等异常。优先使用sessionId,若启用Agent Team需先配置角色,确保Run正确关联当前线程。

plugins/canvasight/skills/canvasight-run/SKILL.md Niall-Young/Canvasight

触发场景

收到Canvasight Run消息 需要等待或认领Canvasight运行结果 处理浏览器回退场景下的Run数据

安装

npx skills add Niall-Young/Canvasight --skill canvasight-run -g -y
更多选项

非标准路径

npx skills add https://github.com/Niall-Young/Canvasight/tree/main/plugins/canvasight/skills/canvasight-run -g -y

不安装直接使用

npx skills use Niall-Young/Canvasight@canvasight-run

指定 Agent (Claude Code)

npx skills add Niall-Young/Canvasight --skill canvasight-run -a claude-code -g -y

安装 repo 全部 skill

npx skills add Niall-Young/Canvasight --all -g -y

预览 repo 内 skill

npx skills add Niall-Young/Canvasight --list

SKILL.md

Frontmatter
{
    "name": "canvasight-run",
    "description": "Handle Chat-only Canvasight Run output in the current Codex thread. Use when a Run arrives through the native widget host bridge, when a browser\/dev Run is queued for await_canvasight_run fallback, or when legacy Plan or Goal node data must be treated as Chat."
}

Canvasight Run

Use this skill to handle Canvasight Run payloads as Chat follow-ups.

Workflow

  1. If the Run arrived as a normal Codex follow-up turn from the Canvasight native widget host bridge, use that Markdown directly.
  2. If the user opened Canvasight through a browser/dev fallback, call claim_canvasight_thread before clicking Run in an old tab so the daemon scopes the queued Run to the current thread. A bare 5173 page without an explicit claim must be treated as unbound, not as a sent Run.
  3. If the user already clicked Run but no Codex turn appeared, call await_canvasight_run. If await_canvasight_run is not callable, use tool_search for Canvasight tools first. If it is callable but fails with Transport closed, report canvasight_mcp_transport_closed: the fallback queue cannot be consumed from this stale task. Inspect mcp-lifecycle.log when available, then reload or use a new task with current Canvasight tools.
  4. Prefer sessionId when available; use projectPath to attach to the next queued Run from any active session in that project.
  5. Treat returned Markdown and structuredContent as the source of truth for the next Codex action.
  6. If structuredContent.agentTeam.enabled is true, use canvasight-agent-team before executing the task. Read its schema and ROSTER.md before assigning or rebuilding a role.

Normal Canvasight Run delivery must come from the Codex native widget host bridge, using either MCP Apps ui/message or Codex/OpenAI compatibility window.openai.sendFollowUpMessage. If the UI reports browser_fallback_no_bridge, the page was opened through browser fallback/dev URL instead of the native widget; reopen with open_canvasight after tool_search, or receive the queued fallback with await_canvasight_run. If those visible Canvasight MCP tools fail with Transport closed, stop, inspect mcp-lifecycle.log, and report canvasight_mcp_transport_closed instead of promising queued recovery in the same stale thread. Browser URLs and bare dev pages must not silently pretend success: if no claim exists, the UI must report unbound_dev_session; otherwise it queues the payload for await_canvasight_run. Do not treat Codex app-server turn/start as a Run delivery path.

Native open must have received the active task's explicit CODEX_THREAD_ID and passed the instance-bound await gate with verified fullscreen React/project/canvas evidence; Run is accepted only from that same instance. Do not use a missing hostCapabilities.message declaration alone to disable Run after the MCP App handshake succeeds. Call sendMessage and treat only its resolved Promise as sent.

Read references/run-output-contract.md for Chat delivery and legacy-node normalization.

版本历史

  • 065406a 当前 2026-07-19 09:56

同 Skill 集合

plugins/canvasight/skills/canvasight-open/SKILL.md
plugins/canvasight/skills/canvasight-update/SKILL.md
plugins/canvasight/skills/canvasight/SKILL.md
plugins/canvasight/skills/canvasight-agent-team/SKILL.md
plugins/canvasight/skills/canvasight-graph-writer/SKILL.md
plugins/canvasight/skills/canvasight-troubleshooting/SKILL.md

元信息

文件数
0
版本
065406a
Hash
32ab872d
收录时间
2026-07-19 09:56

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-23 12:41
浙ICP备14020137号-1 $访客地图$