Skip to content

[BUG]: 'AI task failed: No child processes (os error 10)' using agent mode #847

Closed

Description

@dyuri

Describe the Bug

I get AI task failed: No child processes (os error 10) after a few seconds when I try to use agent mode.

Example:

$ flyline set-agent-mode --system-prompt "Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command." --trigger-prefix ': ' --command 'claude --effort low --model haiku --print'
$ : list all the files in the current folder
AI task failed: No child processes (os error 10)
Press Enter to run `flyline set-agent-mode --help`.

When I try to run the command that it prints during execution, it works:

$ claude --effort low --model haiku --print "Be concise. Answer with a JSON array of at
 most 3 items with objects containing: command and description. Command will be a Bash command
. list all the files in the current folder"
[
  {
    "command": "ls -1",
    "description": "List files in current directory, one per line"
  },
  {
    "command": "ls -la",
    "description": "List all files including hidden ones with details"
  },
  {
    "command": "find . -maxdepth 1 -type f",
    "description": "Find all regular files in current directory"
  }
]

Environment & Version Information

flyline 1.4.0
git hash: acdba86
build mode: release
build datetime: 2026-07-28T08:31:56Z
build target: x86_64-unknown-linux-gnu
rustc version: rustc 1.96.0 (ac68faa20 2026-05-25)

Running in: Bash 5.3.15(1)-release
shell: /bin/bash

Running in: xterm-kitty
program: unknown
program version: unknown
locale: en_US.UTF-8 (LC_ALL: unknown, LC_CTYPE: unknown)

Running in: Arch Linux (kernel 7.1.4-arch1-1 x86_64)
system linker: unknown
dynamic linker: unknown

Running on: AMD Ryzen 5 5600X 6-Core Processor (12 cores)

Running in: a simulation

Debug Logs (Optional / If Necessary)

Click to expand logs
2026-07-28T15:52:25.429968 [INFO] (pid=15403) src/app/mod.rs:1506: Running AI command: claude --effort low --model haiku --print 'Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command.
list all the files in the current folder'
2026-07-28T15:52:31.641854 [WARN] (pid=15403) src/app/mod.rs:1169: AI task: try_wait error: No child processes (os error 10)
2026-07-28T15:52:31.641922 [ERROR] (pid=15403) src/app/mod.rs:1202: AI command failed: AI task failed: No child processes (os error 10)
2026-07-28T15:52:32.901721 [DEBUG] (pid=15403) src/app/mod.rs:241: Final state: WithoutCommand

Steps to Reproduce

  1. set agent mode (flyline set-agent-mode --system-prompt "Be concise. Answer with a JSON array of at most 3 items with objects containing: command and description. Command will be a Bash command." --trigger-prefix ': ' --command 'claude --effort low --model haiku --print')
  2. try to invoke it via something like : list all the files in the current folder

Activity

  1. added
    bug
    on Jul 28, 2026
  2. dyuri commented on Jul 31, 2026

    @dyuri
    Author

    I've done some fiddling, it looks like oh-my-posh - that I use to have the same prompt for different shells - messes up something, I removed it from my bashrc and now agent mode works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions