Skip to content

Enhance custom commands#13

Closed
ezynda3 wants to merge 2 commits intoanomalyco:devfrom
mark3labs:enhance-custom-commands
Closed

Enhance custom commands#13
ezynda3 wants to merge 2 commits intoanomalyco:devfrom
mark3labs:enhance-custom-commands

Conversation

@ezynda3
Copy link
Copy Markdown
Contributor

@ezynda3 ezynda3 commented May 15, 2025

No description provided.

@ezynda3 ezynda3 closed this May 15, 2025
@adamdotdevin
Copy link
Copy Markdown
Member

haha, sorry, i already pulled your commit over!

andreipromarketing-dev pushed a commit to andreipromarketing-dev/opencode that referenced this pull request Apr 7, 2026
fix: remove malformed workflow and fix hooks.json regex escaping
csr-reboot added a commit to dostack-ai/opencode that referenced this pull request Apr 15, 2026
Signals build_status to the DOstack platform so the frontend knows when
a build is in progress vs. complete, fixing the premature deploy race
condition (issue anomalyco#13).

- 'building' sent on first file write (debounced — one call per cycle)
- 'complete' sent when AI declares build done AFTER verification passed
  (verificationInjected is true and no files written since)
- Status resets when verification re-arms (file write after complete)
- Complete signal retries once on failure; building is fire-and-forget
- API failures never crash the build

New file: src/build-status.ts — stateful reporter with dedup and retry
Hook changes: after-response gets reportBuilding, text-complete gets
  reportComplete + isVerificationComplete for the two-phase signal

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rwanbt added a commit to Rwanbt/opencode that referenced this pull request Apr 19, 2026
…eader

stop_local_server previously called child.kill() and dropped the Child
without wait(). On Unix the process lingered as a zombie and — the real
leak — the BufReader<ChildStderr> running in the dedicated stderr
thread stayed blocked inside `.lines()` forever, holding the pipe fd.
Repeated stop/start cycles on a long mobile session accumulated
parked threads + dangling fds.

Now we take() the Child out of the shared guard, call kill(), and poll
try_wait() for up to 2 seconds. That lets the kernel reap the zombie
and closes the stderr pipe, so the reader thread naturally exits on
EOF and drops its fd.

Closes anomalyco#13/21.
aleygey pushed a commit to aleygey/my_opencode that referenced this pull request Apr 21, 2026
…, usage

- Event retention: 500-row hard cap per workflow with protected-kind
  allowlist so forensic / terminal events never prune (P3 anomalyco#11).
- Pending-commands queue with stable-fingerprint dedup, ACK path for
  runtime command_ids, and 1h TTL on timed_out_at entries (P1/P3).
- Legal state-machine transitions for node status, with runtime-source
  bypass for stall / limit-reach forced moves (P0/P2).
- Structured open_need / fulfill_need lifecycle replacing free-form
  blocker text; auto-waits the node and wakes master on fulfill (P2).
- Workflow.Summary zod schema (.loose + .meta ref) plus matching
  WorkflowSummary type on the sql layer — legacy rows still parse (P3 anomalyco#13).
- Per-node usage accumulation from assistant message tokens/cost with
  message-id dedup; workflow Runtime.usage rolls up across nodes;
  advisory limits from workflow.config.limits emit one-shot
  node.budget_exceeded (P3 anomalyco#15).
- workflow_need_fulfill registered in ToolRegistry; control HTTP route
  returns { ok, deduped, command_id } so the master sees dedup signal.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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