mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 20:01:27 +00:00
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:
parent
6dbc871db9
commit
be32cf04a2
6 changed files with 296 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue