Skip to content

feat: group workdir + lifecycle script editor in settings - #6

Merged
ranxianglei merged 2 commits into
masterfrom
feat/daemon-workdir
Jul 28, 2026
Merged

feat: group workdir + lifecycle script editor in settings#6
ranxianglei merged 2 commits into
masterfrom
feat/daemon-workdir

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Part of the daemon workdir refactor (cross-repo: router + daemon + web).

Extends the existing Daemon 分组与路由策略 section with a per-group config editor (collapsible <details> cards per group):

  • Workdir template ({owner}/{repo}/{issue}/{session} variables)
  • Init script (runs on task delivery)
  • Destroy script (runs on issue close)
  • Env-init script (placeholder field, disabled — not yet executed)

Group names are auto-collected from daemonGroups + groupBindings + existing configs. Saved into strategy.groupConfigs alongside the rest of the strategy via the existing /api/router/strategy endpoint. tsc clean, 83 tests pass.

…ups section

Extends the Daemon groups section with a per-group config editor: workdir template (with {owner}/{repo}/{issue}/{session} variables), init script (runs on delivery), destroy script (runs on close), and an env-init field (placeholder, disabled). Configs are collected from all group names (daemonGroups + groupBindings + existing configs) and saved into strategy.groupConfigs alongside the rest of the strategy via the existing /api/router/strategy endpoint.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…older

C1 (CRITICAL): web proxy to /api/router/strategy now injects Authorization: Bearer header when WORK_ROUTER_ADMIN_TOKEN is set, complementing the router-side auth check.

H1+M7 (HIGH/MEDIUM): script textareas now have maxlength=4096 (workdir=512) to prevent configs that exceed the router's 12KB header cap. Init script placeholder fixed from the non-existent ${CLONE_URL} to real env vars ($EWORK_OWNER/$EWORK_REPO). Labels now document available env vars and template variables.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@ranxianglei
ranxianglei force-pushed the feat/daemon-workdir branch from 7eabe81 to 715a7af Compare July 28, 2026 00:34
@ranxianglei
ranxianglei merged commit 5f0135e into master Jul 28, 2026
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.

2 participants