Skip to content

feat(vscode): implement background job management with UI components and terminal integration - #81

Merged
wsxiaoys merged 5 commits into
mainfrom
feat/bg-job-impl
Aug 29, 2025
Merged

feat(vscode): implement background job management with UI components and terminal integration#81
wsxiaoys merged 5 commits into
mainfrom
feat/bg-job-impl

Conversation

@zhanba

@zhanba zhanba commented Aug 28, 2025

Copy link
Copy Markdown
Member

Screenshot

image image

Summary

  • Add UI components for start, kill, and read background job operations
  • Enhance command execution panel with background job support
  • Improve terminal job management and output handling
  • Add utility functions for background job lifecycle management
  • Update environment prompts to include background job context
  • Refactor tool call lifecycle to support background operations

Test plan

  • run command in foreground, should remain same.
  • run command in background
    • command start in background success
      • startBackgroundJob tool call success
      • terminal open and show
    • read background job output
      • readBackgroundJobOutput tool call success
        • should be able to read output since last read
        • should be able to read output with regex to filter output
        • should truncate output when output exceed limit
        • should be able to read output after command execution finished
        • should be able to read output after command execution aborted
        • should be able to read output after terminal closed
        • should contain execution status(running or finished) in output
        • should display error message if command execution failed
        • should read output failed when all output has been read and command execution finished
        • should read output failed when all output has been read and command execution aborted by user in terminal
    • kill background job
      • killBackgroundJob tool call success
        • should be able to kill command execution
        • should display error message if kill failed or execution already finished
  • terminals in environment should contain backgroundJobId
  • reopen task should display backgroundJob info properly
  • share task should display backgroundJob info properly

🤖 Generated with Pochi

@zhanba zhanba changed the title enhance: improve background job management with enhanced UI components and terminal integration feat(vscode):implement background job management with UI components and terminal integration Aug 29, 2025
…nd terminal integration

- Add UI components for start, kill, and read background job operations
- Enhance command execution panel with background job support
- Improve terminal job management and output handling
- Add utility functions for background job lifecycle management
- Update environment prompts to include background job context
- Refactor tool call lifecycle to support background operations

🤖 Generated with [Pochi](https://getpochi.com)

Co-Authored-By: Pochi <noreply@getpochi.com>
Comment thread packages/tools/src/index.ts Outdated
Comment thread packages/vscode-webui/src/__stories__/tool-gallery.stories.tsx
@zhanba zhanba changed the title feat(vscode):implement background job management with UI components and terminal integration feat(vscode): implement background job management with UI components and terminal integration Aug 29, 2025
@zhanba
zhanba requested a review from wsxiaoys August 29, 2025 07:08
@zhanba

zhanba commented Aug 29, 2025

Copy link
Copy Markdown
Member Author

storybook

image

@wsxiaoys
wsxiaoys added this pull request to the merge queue Aug 29, 2025
Merged via the queue into main with commit 252be75 Aug 29, 2025
3 checks passed
@wsxiaoys
wsxiaoys deleted the feat/bg-job-impl branch August 29, 2025 08:43
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