GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix(core): bound finished daemon shell commands across Locations by craigalbrecht · Pull Request #64037 · anomalyco/opencode Conversation
|
| ) | ||
| finished | ||
| .toSorted((a, b) => (a.info.time.completed ?? 0) - (b.info.time.completed ?? 0)) | ||
| .forEach((run) => retain(run.info.id)) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking: finished commands left by a previous server are only added to exited when their Location is reopened (recover runs lazily from at). After a handoff, finished pipes from Locations that aren't reopened stay in the daemon outside the 100 cap until the 7-day sweep. A Location reopened later also puts its old commands at the newest end of the global order, so they can push out more recent commands from other Locations. If the goal is a daemon-wide bound across handoffs, you could count unclaimed exited pipes in pty.listPipes() once at startup, or have cleanup trim them. If not, it would help to note that the cap is per server lifetime.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
opencode-pty daemon leaks zombie child processes (unbounded growth under single daemon PID)
There was an error while loading. Please reload this page.