Skip to content

fix(web): worker.yml Preview shows runtime (Agent/Python), not the entrypoint#2024

Merged
itachi-hue merged 1 commit into
mainfrom
fix/worker-yaml-runtime-label
Jun 26, 2026
Merged

fix(web): worker.yml Preview shows runtime (Agent/Python), not the entrypoint#2024
itachi-hue merged 1 commit into
mainfrom
fix/worker-yaml-runtime-label

Conversation

@itachi-hue

Copy link
Copy Markdown
Collaborator

Problem

In a worker's Source → Preview, the Runtime row often showed the entrypoint filename — e.g. SKILL.md (or run.py). That's a file (already listed under Files), not a runtime, so the cell was meaningless.

Cause

runtimeLabel(exec) joined (runtime||type) · (command||entry). For agent/skill contracts the runtime/type were empty and it fell through to command/entry, which is the entrypoint → "SKILL.md".

Fix

Surface the exec mode (agent vs script) + the runtime engine:

  • mode: agent"Agent"
  • mode: pure-script + runtime: python311"Script · Python 3.11"

Falls back to the old command/entry display only when neither mode nor runtime is present, so legacy/odd contracts never render a blank cell (no regression).

engine/apps/web/components/worker-form/FilesEditor.tsx only.

🤖 Generated with Claude Code

… filename

The worker-source "Preview" rendered Runtime via runtimeLabel(exec), which joined
(runtime||type) · (command||entry) — for many contracts that collapsed to the
entrypoint, e.g. "SKILL.md" or "run.py". That's a file (already shown in Files),
not a runtime, so the cell read as meaningless.

Surface the exec mode (agent vs script) plus the runtime engine instead:
"Agent" or "Script · Python 3.11". Falls back to the old command/entry display
only when neither mode nor runtime is present, so legacy contracts never show a
blank cell.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@itachi-hue itachi-hue merged commit 2cc0bf1 into main Jun 26, 2026
7 checks passed
@itachi-hue itachi-hue deleted the fix/worker-yaml-runtime-label branch June 26, 2026 02:47
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