fix: address review issues and add processes documentation

- Fix unstable onExit callback in ProcessesTab (useCallback)
- Fix SSE follow stream race condition (subscribe before history read)
- Update inspector.mdx with new process management features
- Change observability icon to avoid conflict with processes
- Add docs/processes.mdx covering the full process management API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nathan Flurry 2026-03-06 00:44:20 -08:00
parent 6dbc871db9
commit be32cf04a2
6 changed files with 296 additions and 9 deletions

View file

@ -179,6 +179,10 @@ const ProcessesTab = ({
}
};
const handleTerminalExit = useCallback(() => {
void loadProcesses("refresh");
}, [loadProcesses]);
return (
<div className="processes-container">
{/* Create form */}
@ -389,9 +393,7 @@ const ProcessesTab = ({
<GhosttyTerminal
client={getClient()}
processId={selectedProcess.id}
onExit={() => {
void loadProcesses("refresh");
}}
onExit={handleTerminalExit}
/>
) : canOpenTerminal(selectedProcess) ? (
<button