Skip to content

On a mac, .zshrc is periodically re-ran #802

Description

@grbinho

What happened?

Hi, I'm playing around with supacode and I ran into a potential issue.

I kept it running over night and I woke up to this error on my shells

error starting IO thread: error.SystemResources  The underlying shell or command was unable to be started. This error is usually due to exhausting a system resource. If this looks like a bug, please report it.  This terminal is non-functional. Please close it and try again.

For me this happened because i had an insane amount of ssh-agent processes running.
They are usually started from my zshrc when i start a terminal (Ghostty usually).
I killed all the processes, but they started spawning up again. Killed supacode and silence.
It seems that supacode re-runs zshrc quite often and in my case that ended up exhausting my resources.

Is there a good reason for such behavior?

Steps to reproduce

  1. Spawn some process in your zshrc
  2. Let supacode run
  3. Observer process count grow

Supacode version and build

Version 0.10.8 (1785775286)

macOS version

26.6.1 (25G76)

System locale

en_HR

Mac hardware

M2 Pro

Relevant logs or screenshots

Are you planning to fix this yourself?

  • I intend to open a pull request once this is confirmed and marked ready.

Before submitting

  • I searched existing issues and this is not a duplicate.
  • I am on the latest available version of Supacode.
  • I understand pull requests are closed until the issue is marked ready.
  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions