Commit Graph
98 Commits
Author SHA1 Message Date
Yota Hamada 63be5b4911 feat: add approval rewind and push-back history (#2038) 2026-04-26 20:18:05 +09:00
Yota Hamada 67c4663c73 Fix worker selector for sub-DAG calls (#2029) 2026-04-22 21:25:18 +09:00
Yota Hamada b9cd41d054 fix: validate sftp executor schema (#2022) 2026-04-22 18:31:54 +09:00
Yota Hamada 827dfbdae5 feat: support template functions in custom step types (#2020) 2026-04-21 19:42:14 +09:00
Yota Hamada f8c36d56f8 feat: add step with config alias (#2021) 2026-04-21 01:28:12 +09:00
Yota Hamada 45b11e0db1 ci: run tests on windows-latest (#1997) 2026-04-16 10:51:49 +09:00
Yota Hamada aaa964cfae fix: remove third-party skill installation from embedded AI agent (#1988) 2026-04-11 23:53:44 +09:00
Yota Hamada 8b42bba4fc fix: distribute agent snapshots to shared-nothing workers (#1986) 2026-04-11 01:03:53 +09:00
Yota Hamada ca6898a543 chore: remove experimental gha (GitHub Actions) executor (#1983) 2026-04-10 23:02:04 +09:00
Yota Hamada c8ed7c1dc9 feat: add harness executor for coding agent CLI orchestration (#1978) 2026-04-10 19:45:21 +09:00
Yota Hamada c8dae218a4 fix: replace time.Sleep with deterministic synchronization in tests (#1973) 2026-04-08 10:59:47 +09:00
Yota Hamada 2c47e3f284 fix: migrate GitHub org references to dagucloud 2026-04-06 13:16:44 +09:00
Yota Hamada 01495aec54 feat: replace CLI remote nodes with contexts (#1949) 2026-04-02 22:04:52 +09:00
Yota Hamada 14249a6d45 feat: support OpenAI Codex auth and reasoning effort in agent settings (#1921) 2026-04-01 15:50:17 +09:00
Yota Hamada bed0c6f294 feat: add kubernetes step executor and DAG defaults (#1886) 2026-04-01 12:52:03 +09:00
Yota Hamada a88c621286 fix: dependency vulnerabilities reported in #1862 (#1863) 2026-03-27 22:53:48 +09:00
Yota Hamada 59ee2233d7 feat: support slim-sprig functions in template steps (#1848) (#1850) 2026-03-24 23:08:51 +09:00
Yota Hamada 8243977b93 feat: add template executor for inline text rendering (#1845) 2026-03-24 17:25:31 +09:00
Yota Hamada 55cad8e5ed fix: add Docker daemon connection vars to env whitelist (#1846) 2026-03-24 17:24:34 +09:00
Yota Hamada e85b7b7041 fix: clean up failed command temp scripts (#1829) 2026-03-22 22:17:04 +09:00
Matt Van HornandMatt Van Horn ae4bfcdb79 feat(http): add format string config option for response output (#1826)
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
2026-03-22 19:06:38 +09:00
Yota Hamada e8eb567092 feat(jq): accept file input via config.input and file:// prefix (#1821) 2026-03-22 01:49:37 +09:00
Yota Hamada 7aeae018a5 fix: resolve parallel sub-DAG item targets and harden cancellation (#1797) 2026-03-19 14:37:41 +09:00
Yota Hamada a61a34ee3d fix: unblock parallel scheduling during subdag retries (#1796) 2026-03-19 13:06:43 +09:00
Yota Hamada 8ef955e324 fix: harden bot session continuity and responsiveness (#1793) 2026-03-19 12:57:59 +09:00
Yota Hamada c7476bfb06 fix: resolve DAG env/params references in container env variables (#1778) 2026-03-15 20:54:19 +09:00
Yota Hamada a87c407769 feat: add rich DAG params with typed run modal (#1770) 2026-03-14 23:12:39 +09:00
Tushar 40037793cb Fix raw output mode for large numbers in the jq step. (#1754) 2026-03-11 11:21:19 +09:00
Yota Hamada b581118067 chore: add GPL-3.0 license headers to source files
Add copyright and SPDX license identifier headers to all Go source
files, test files, shell scripts, and proto files.
2026-03-09 18:38:11 +09:00
Yota Hamada f1b080319a feat: add generic approval field for human-in-the-loop on any step type (#1743) 2026-03-08 20:38:20 +09:00
Yota Hamada 1b856b04c4 feat: annotate script errors with failing line content and preserve emp scripts on failure (#1733) 2026-03-07 22:40:32 +09:00
Yota Hamada c9b6a1c2b5 feat: add DAGU_DOCS_DIR configurable environment variable
Add DocsDir as an independently configurable path (default: {dags_dir}/docs).
Previously the docs directory was always derived from DAGsDir. Now users can
override it via DAGU_DOCS_DIR env var or paths.docs_dir in config YAML.

Also updates the AI agent system prompt to reference DocsDir and note
that DAGU_DAGS_DIR and DAGU_DOCS_DIR are configurable.
2026-03-05 22:39:55 +09:00
Yota Hamada 017880d970 refactor: remove read_schema agent tool in favor of dagu schema CLI (#1726) 2026-03-05 20:16:13 +09:00
Yota Hamada b2d6ee782d fix: expand parameter variables in HTTP step method position (#1722) (#1723) 2026-03-04 21:27:15 +09:00
Yota Hamada 9385988946 fix: agent step hanging after LLM response (#1718) 2026-03-03 21:17:44 +09:00
Yota Hamada e8673de974 fix: container shell execution bug (#1709) (#1711) 2026-03-02 12:42:06 +09:00
Yota Hamada b5df396d90 feat: remote agent (#1707) 2026-02-28 10:20:27 +09:00
Yota Hamada 166be0154a refactor: use agent native websearch (#1706) 2026-02-27 17:27:41 +09:00
Yota Hamada 56015b3f74 feat: calculate API costs for agent steps (#1697) 2026-02-22 23:09:41 +09:00
Yota Hamada af945910c9 feat: support for agent soul (#1696) 2026-02-22 18:27:22 +09:00
Yota Hamada e22497e4e0 feat: enhance agent session management (#1692) 2026-02-21 17:05:26 +09:00
Yota Hamada 1dd37c2d80 feat: wiring agent skills (#1689) 2026-02-19 23:01:50 +09:00
Yota Hamada de49170913 refactor: streamline agent package structure (#1683) 2026-02-15 23:33:11 +09:00
Yota Hamada 4de003c524 feat: agent step type (#1681) 2026-02-15 21:38:50 +09:00
Yota Hamada f460e2e1bb feat: adopt DAG schema to snake_case (#1670) 2026-02-14 18:09:40 +09:00
Yota Hamada 99b4999e97 fix(#1661): expand env vars for non-Unix shells (PowerShell/cmd) (#1666) 2026-02-14 03:41:30 +09:00
Yota Hamada 5394d09878 chore: Upgrade to go 1.26 (#1655) 2026-02-12 22:37:40 +09:00
Yota Hamada 5c7afbbfed reafctor: renaming persistence store for clarity (#1653) 2026-02-12 11:57:06 +09:00
Yota Hamada 8a67644e84 feat: default execution mode (#1642) 2026-02-07 22:47:56 +09:00
Pedro Rodriguez a83d1ea0de Fix/windows process tree and timeout fix (#1635)
# Fix: Enforce timeoutSec on Windows and prevent process hangs

## Problem Description

When `timeoutSec` is set on a DAG step, processes that exceed the
timeout should be forcibly terminated. However, on Windows, some
processes would continue running for hours even when `timeoutSec` was
set (e.g., to 900 seconds).

### Root Cause

The issue had two components:

1. **Blocking `cmd.Wait()`**: The `commandExecutor.Run()` method blocked
indefinitely on `cmd.Wait()` without listening to context cancellation.
When the timeout expired, the process would not be killed because the
code was stuck waiting for `Wait()` to return.
  
2. **Incomplete process termination on Windows**: The Windows
`KillProcessGroup()` function only killed the immediate process, leaving
child processes (subprocess tree) orphaned and running.
  

## Changes Made

### 1. `internal/runtime/builtin/command/command.go`

Modified the `Run()` method to:

- Run `cmd.Wait()` in a goroutine with a result channel
- Use `select` to watch for both context cancellation and command
completion
- Forcibly kill the process when context is cancelled (timeout)
- Return exit code 124 (standard timeout exit code) on timeout

### 2. `internal/cmn/cmdutil/cmd_windows.go`

Updated `KillProcessGroup()` to:

- Use `killProcessTree()` instead of just `cmd.Process.Kill()`
- Ensure child processes are also terminated on Windows
- Match the behavior used in `KillMultipleProcessGroups()` and Unix
implementation

## Impact

- **timeoutSec** now works reliably on all platforms, especially Windows
- Processes that hang due to I/O blocking or zombie states are properly
terminated
- Child processes on Windows are no longer orphaned when the parent is
killed
- Exit code 124 is returned for timeout scenarios (consistent with Unix
timeout behavior)

## Files Changed

1. `internal/runtime/builtin/command/command.go` - Core timeout
enforcement fix
2. `internal/cmn/cmdutil/cmd_windows.go` - Windows process tree
termination fix
2026-02-06 11:09:07 +09:00