fix(agents): improve session tracking accuracy with process registry cross-check

- Cross-check database running sessions with actual process registry
- Filter out stale database entries for crashed processes without cleanup
- Add comprehensive comments explaining the reliability improvements
- Fix sticky header z-index layering issue in AgentExecution component

This addresses cases where agent processes crash without properly updating
the database status, ensuring the UI shows only truly active sessions.
This commit is contained in:
Mufeed VH
2025-07-02 18:34:13 +05:30
parent d431f3286d
commit 124fe1544f
2 changed files with 28 additions and 3 deletions

View File

@@ -495,7 +495,7 @@ export const AgentExecution: React.FC<AgentExecutionProps> = ({
{/* Fixed container that takes full height */}
<div className="h-full flex flex-col">
{/* Sticky Header */}
<div className="sticky top-0 z-10 bg-background border-b border-border">
<div className="sticky top-0 z-20 bg-background border-b border-border">
<div className="w-full max-w-5xl mx-auto">
<motion.div
initial={{ opacity: 0, y: -20 }}