Skip to content

Fix virtual OS processes: hide CPU/Memory and close window on End Task#15

Merged
H0NEYP0T-479 merged 3 commits into
masterfrom
copilot/fix-virtual-os-processes
Dec 26, 2025
Merged

Fix virtual OS processes: hide CPU/Memory and close window on End Task#15
H0NEYP0T-479 merged 3 commits into
masterfrom
copilot/fix-virtual-os-processes

Conversation

Copilot AI commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Virtual OS processes were displaying simulated CPU/Memory values and End Task wasn't closing the associated window.

Changes

  • Removed CPU/Memory display from virtual processes

    • Table view: removed CPU % and Memory % columns
    • Grid view: replaced CPU/MEM stats with start time
    • Details panel: removed Resource Usage section
    • Footer: removed CPU/Memory totals
  • End Task now closes associated window

    • Uses deleteVirtualProcess instead of stopVirtualProcess to fully remove process
    • Looks up window by window_id in process metadata
    • Falls back to app name matching for single-instance apps
const confirmTerminateProcess = async () => {
  const processToStop = virtualProcesses.find(p => p.id === confirmTerminate);
  await api.deleteVirtualProcess(confirmTerminate);
  
  if (processToStop) {
    const windowId = processToStop.metadata?.window_id;
    if (typeof windowId === 'string') {
      closeWindow(windowId);
    } else {
      const appWindows = windows.filter(w => w.app === processToStop.app);
      if (appWindows.length === 1 && appWindows[0]) {
        closeWindow(appWindows[0].window_id);
      }
    }
  }
};
Original prompt

donot show the cpu usage and memory usage in the virtual os processes and also fix its starting time its not correct

also when user click end task for the virtual processes it ends the tasks as well
fix this issue

Like if i am in task manager and i click end task for task manager task manager should close


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits December 26, 2025 16:32
Co-authored-by: H0NEYP0T-479 <202741771+H0NEYP0T-479@users.noreply.github.com>
Co-authored-by: H0NEYP0T-479 <202741771+H0NEYP0T-479@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CPU and memory usage display in virtual OS Fix virtual OS processes: hide CPU/Memory and close window on End Task Dec 26, 2025
Copilot AI requested a review from H0NEYP0T-479 December 26, 2025 16:35
@H0NEYP0T-479 H0NEYP0T-479 marked this pull request as ready for review December 26, 2025 16:36
@H0NEYP0T-479 H0NEYP0T-479 merged commit 78b607d into master Dec 26, 2025
2 of 3 checks passed
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