Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Background commands: finished entries stay in memory and their IDs are shared across chats

Closed
#187 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend, security

Research direction

Start by reading src/main/tools/shell.ts:226-273 and chat_manager.ts:412-428 to trace background-command storage and how chats share a ShellRunner. Check the command-output and stop paths to understand when entries are read or removed. Done means finished output no longer accumulates indefinitely and one chat cannot read or stop another chat’s commands.

Written by the indexing model from the issue text.

Description

bug priority: low severity: low

Found in the 2026-10-07 code review (read).

Problem

  • Memory: entries in ShellRunner.background (src/main/tools/shell.ts:226-273) are removed only by stopBackground/stopAll. A finished entry keeps output and unread, up to 1 M characters each, until Stop or a project switch.
  • Shared IDs: one ShellRunner serves every chat in a workspace (chat_manager.ts:412-428). A reopened chat can call command_output id=1 and read or stop a command another chat started.

Fix

  • Delete an entry once it has exited and its output has been read, or keep only the last N finished entries.
  • Key background entries by session ID.
Dominant language
TypeScript
Stars
2
Forks
2
Avg merge
5h 28m
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PierrunoYT/patch

All issues in PierrunoYT/patch

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.