Skip to content

[FEATURE]:AI无法运行背景任务 #18372

Closed as not planned
Closed as not planned

Description

@958877748

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

AI运行类似 npm run dev 后 就会卡住 然后超时 无法做到和claude code一样 运行一个背景任务后 再去干其他事情 等会回来还可以读取这个背景任务的输出

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 20, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 20, 2026
  3. github-actions commented on Mar 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  4. herjarsa commented on Apr 19, 2026

    @herjarsa

    Strong vote for this — Windows user confirmed

    This is exactly the missing capability. Another affected case on Windows 11:

    • npm install / pnpm install — hangs for minutes with streaming output, AI completely blocked
    • python manage.py runserver, dotnet watch, cargo watch — any long-running dev command

    Reference implementation

    Antigravity (Claude Code alternative) handles this with a clean async process model:

    • start_process — non-blocking, returns immediately with a PID
    • read_process_output — read from running process at any time
    • interact_with_process — send stdin input

    This lets the AI run npm install in the background, poll its output to detect progress/errors/done, and do other work in parallel. The Windows blocking problem (#21060) is the same root issue — synchronous bash tool that waits for exit.

    Would unblock a huge class of workflows on Windows especially.

  5. workdocyeye commented on Apr 25, 2026

    @workdocyeye

    这个问题我也碰到了,自己写了个 skill 解决:
    https://github.com/workdocyeye/server-manager

    就是在 PowerShell 里用 cmd /c 把输出重定向到日志文件,这样 npm run dev 之类的命令就不会阻塞终端了。可以后台运行,随时查看日志、杀进程。

    支持 npm / streamlit / python / go / dotnet / cargo 各种开发服务器。

  6. assigned and unassigned on Apr 26, 2026
  7. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions