diff --git a/apps/desktop/core/application/src/agent_detection.rs b/apps/desktop/core/application/src/agent_detection.rs index bd143a9..dbedbb0 100644 --- a/apps/desktop/core/application/src/agent_detection.rs +++ b/apps/desktop/core/application/src/agent_detection.rs @@ -3,6 +3,7 @@ //! catálogo de agentes conocidos es solo un detalle de presentación. use std::collections::HashMap; +use std::path::PathBuf; /// Agentes que la app sabe reconocer. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] @@ -79,6 +80,8 @@ pub struct ProcessInfo { pub args: Vec, /// Instante de arranque, en segundos desde la época Unix (`None` si no se conoce). pub started_at: Option, + /// Directorio de trabajo actual del proceso (`None` si el SO no lo expone). + pub cwd: Option, } const SCRIPT_RUNTIMES: [&str; 3] = ["node", "bun", "deno"]; @@ -129,6 +132,9 @@ pub struct AgentTree { /// Agentes conocidos por debajo del principal, del más cercano al shell al /// más profundo, sin repetir. pub nested: Vec, + /// Directorio de trabajo activo del agente o de su subproceso/subagente más + /// profundo (p. ej. cuando trabaja dentro de un git worktree). + pub active_cwd: Option, } /// Busca los agentes conocidos entre los descendientes de `root` (la shell de la @@ -157,6 +163,8 @@ pub fn detect_agents_within(processes: &[ProcessInfo], root: u32, stop_at: &[Str // Acumula en orden de anchura (menor profundidad primero) y sin repetir. let mut found: Vec = Vec::new(); let mut primary_started_at = None; + let mut primary_cwd: Option = None; + let mut active_cwd: Option = None; let mut level = vec![root]; let mut visited = std::collections::HashSet::from([root]); while !level.is_empty() { @@ -171,10 +179,19 @@ pub fn detect_agents_within(processes: &[ProcessInfo], root: u32, stop_at: &[Str if !found.contains(&agent) { if found.is_empty() { primary_started_at = child.started_at; + primary_cwd = child.cwd.clone(); + active_cwd = child.cwd.clone(); } found.push(agent); } } + if !found.is_empty() { + if let Some(cwd) = &child.cwd { + if primary_cwd.as_ref() != Some(cwd) || active_cwd.is_none() { + active_cwd = Some(cwd.clone()); + } + } + } // Aunque sea un agente, sigue bajando: puede tener otros debajo. if visited.insert(child.pid) { next.push(child.pid); @@ -189,6 +206,7 @@ pub fn detect_agents_within(processes: &[ProcessInfo], root: u32, stop_at: &[Str primary: found.next(), primary_started_at, nested: found.collect(), + active_cwd, } } @@ -220,9 +238,15 @@ mod tests { name: name.into(), args: args.iter().map(|a| a.to_string()).collect(), started_at: None, + cwd: None, } } + fn with_cwd(mut process: ProcessInfo, path: &str) -> ProcessInfo { + process.cwd = Some(PathBuf::from(path)); + process + } + fn started(mut process: ProcessInfo, at: u64) -> ProcessInfo { process.started_at = Some(at); process @@ -328,6 +352,7 @@ mod tests { primary: Some(KnownAgent::ClaudeCode), primary_started_at: None, nested: vec![KnownAgent::Codex], + active_cwd: None, } ); } @@ -353,6 +378,7 @@ mod tests { KnownAgent::OpenCode, KnownAgent::AntigravityCli, ], + active_cwd: None, } ); } @@ -372,6 +398,7 @@ mod tests { primary: Some(KnownAgent::ClaudeCode), primary_started_at: None, nested: vec![KnownAgent::Codex], + active_cwd: None, } ); } @@ -481,4 +508,32 @@ mod tests { ); assert_eq!(detect_agents(&list, SHELL).nested, vec![KnownAgent::Codex]); } + + #[test] + fn reports_active_cwd_of_primary_agent_and_prefers_subagent_worktree_cwd() { + let primary_only = vec![ + with_cwd(proc(SHELL, 1, "powershell.exe", &[]), "/repo"), + with_cwd(proc(200, SHELL, "claude.exe", &[]), "/repo"), + ]; + assert_eq!( + detect_agents(&primary_only, SHELL).active_cwd, + Some(PathBuf::from("/repo")) + ); + + // Cuando un subagente o proceso hijo trabaja en un git worktree, su CWD + // prevalece sobre el CWD raíz del agente principal o de otros helpers. + let with_worktree = vec![ + with_cwd(proc(SHELL, 1, "powershell.exe", &[]), "/repo"), + with_cwd(proc(200, SHELL, "claude.exe", &[]), "/repo"), + with_cwd( + proc(300, 200, "codex.exe", &[]), + "/repo-worktrees/feature-a", + ), + with_cwd(proc(301, 200, "node.exe", &["mcp-server.js"]), "/repo"), + ]; + assert_eq!( + detect_agents(&with_worktree, SHELL).active_cwd, + Some(PathBuf::from("/repo-worktrees/feature-a")) + ); + } } diff --git a/apps/desktop/core/application/src/use_cases.rs b/apps/desktop/core/application/src/use_cases.rs index b07fd33..b484bb9 100644 --- a/apps/desktop/core/application/src/use_cases.rs +++ b/apps/desktop/core/application/src/use_cases.rs @@ -442,6 +442,7 @@ mod tests { name: "claude.exe".into(), args: vec![], started_at: Some(1_700_000_000), + cwd: None, }])); let detected = DetectTerminalAgents::new(w.repo.clone(), w.pty.clone(), inspector) @@ -457,6 +458,7 @@ mod tests { primary: Some(KnownAgent::ClaudeCode), primary_started_at: Some(1_700_000_000), nested: vec![], + active_cwd: None, } ), (second, AgentTree::default()), @@ -475,6 +477,7 @@ mod tests { name: "claude.exe".into(), args: vec![], started_at: None, + cwd: None, }, crate::agent_detection::ProcessInfo { pid: 2001, @@ -482,6 +485,7 @@ mod tests { name: "codex.exe".into(), args: vec![], started_at: None, + cwd: None, }, ])); @@ -497,6 +501,7 @@ mod tests { primary: Some(KnownAgent::ClaudeCode), primary_started_at: None, nested: vec![KnownAgent::Codex], + active_cwd: None, } )] ); @@ -511,6 +516,7 @@ mod tests { name: name.into(), args: vec![], started_at: None, + cwd: None, }; let inspector = Arc::new(FakeInspector(vec![ p(2000, 1000, "claude.exe"), diff --git a/apps/desktop/core/infrastructure/src/process_inspector.rs b/apps/desktop/core/infrastructure/src/process_inspector.rs index 6940be0..5ad3462 100644 --- a/apps/desktop/core/infrastructure/src/process_inspector.rs +++ b/apps/desktop/core/infrastructure/src/process_inspector.rs @@ -30,11 +30,13 @@ impl ProcessInspector for SysinfoProcessInspector { .system .lock() .map_err(|e| PortError::new(e.to_string()))?; - // Solo lo que la detección usa: sin CPU, memoria ni disco. + // Solo lo que la detección usa: comando, CWD actual y arranque (sin CPU, memoria ni disco). system.refresh_processes_specifics( ProcessesToUpdate::All, true, - ProcessRefreshKind::nothing().with_cmd(UpdateKind::OnlyIfNotSet), + ProcessRefreshKind::nothing() + .with_cmd(UpdateKind::OnlyIfNotSet) + .with_cwd(UpdateKind::Always), ); Ok(system .processes() @@ -50,6 +52,7 @@ impl ProcessInspector for SysinfoProcessInspector { .collect(), // sysinfo informa 0 cuando no pudo leerlo. started_at: Some(p.start_time()).filter(|&t| t > 0), + cwd: p.cwd().map(|path| path.to_path_buf()), }) .collect()) } @@ -67,6 +70,7 @@ mod tests { .find(|p| p.pid == std::process::id()) .expect("el proceso del test debería aparecer"); assert!(me.parent.is_some()); + assert_eq!(me.cwd, std::env::current_dir().ok()); // El proceso del test arrancó hace poco, pero ya. let started = me.started_at.expect("sysinfo debería informar el arranque"); let now = std::time::SystemTime::now() diff --git a/apps/desktop/src-tauri/src/agent_watcher.rs b/apps/desktop/src-tauri/src/agent_watcher.rs index 7ca9e6f..a4d0b61 100644 --- a/apps/desktop/src-tauri/src/agent_watcher.rs +++ b/apps/desktop/src-tauri/src/agent_watcher.rs @@ -26,13 +26,23 @@ struct TerminalAgentPayload { /// Arranque del proceso del agente principal (segundos desde la época Unix); /// `null` si no corre ninguno. started_at: Option, + /// Directorio de trabajo actual del agente o subagente activo (`null` si no + /// corre ningún agente o el SO no lo expone). + cwd: Option, +} + +#[derive(Clone, PartialEq, Eq)] +struct AgentObservation { + agents: Vec<&'static str>, + started_at: Option, + cwd: Option, } pub fn spawn(app: AppHandle) { thread::spawn(move || { let events = TauriAgentEvents::new(app.clone(), app.state::().agent_states.clone()); - let mut last: HashMap, Option)> = HashMap::new(); + let mut last: HashMap = HashMap::new(); loop { thread::sleep(INTERVAL); let state = app.state::(); @@ -52,24 +62,33 @@ pub fn spawn(app: AppHandle) { for (terminal, tree) in detected { // El principal primero, después los que ese agente tiene anidados. let started_at = tree.primary.and(tree.primary_started_at); + let cwd = tree + .primary + .and(tree.active_cwd) + .map(|p| p.to_string_lossy().into_owned()); let agents: Vec<&'static str> = tree .primary .into_iter() .chain(tree.nested) .map(|a| a.id()) .collect(); - let value = (agents, started_at); - if last.get(&terminal) != Some(&value) { + let observation = AgentObservation { + agents, + started_at, + cwd, + }; + if last.get(&terminal) != Some(&observation) { let _ = app.emit( TERMINAL_AGENT_EVENT, TerminalAgentPayload { terminal_id: terminal.to_string(), - agents: value.0.clone(), - started_at, + agents: observation.agents.clone(), + started_at: observation.started_at, + cwd: observation.cwd.clone(), }, ); } - current.insert(terminal, value); + current.insert(terminal, observation); } // Las terminales cerradas desaparecen solas del mapa. last = current; diff --git a/apps/desktop/src/components/CwdSwitcher.tsx b/apps/desktop/src/components/CwdSwitcher.tsx index 5c61f60..8a48c95 100644 --- a/apps/desktop/src/components/CwdSwitcher.tsx +++ b/apps/desktop/src/components/CwdSwitcher.tsx @@ -115,7 +115,7 @@ export function CwdSwitcher({ cwd, disabledReason, onNavigate }: Props) { onClick={() => void copyPath()} > {copied ? : } - {copied ? "Copied!" : "Copy path"} + {copied ? "Copied!" : "Copy path"} {/* Hacia adelante: subcarpetas del directorio actual. */} diff --git a/apps/desktop/src/components/TerminalPane.tsx b/apps/desktop/src/components/TerminalPane.tsx index 2bc21ee..6c1413c 100644 --- a/apps/desktop/src/components/TerminalPane.tsx +++ b/apps/desktop/src/components/TerminalPane.tsx @@ -92,6 +92,9 @@ export function TerminalPane(props: Props) { const agent = agents[0] ?? null; /// Directorio actual, según lo reporta la shell con OSC 7 en cada prompt. const [cwd, setCwd] = useState(null); + /// Directorio de trabajo real del proceso del agente o subagente activo (p. ej. un git worktree). + const [agentCwd, setAgentCwd] = useState(null); + const effectiveCwd = agentCwd ?? cwd; const [activityState, setActivityState] = useState(initialActivity); const [agentState, setAgentState] = useState(null); const windowFocused = useWindowFocus(); @@ -106,8 +109,8 @@ export function TerminalPane(props: Props) { /// El handler de actividad se registra una vez: lee si se está mirando desde acá. const focusedRef = useRef(watching); focusedRef.current = watching; - // Se vuelve a leer al quedar inactivo: un agente pudo cambiar de rama. - const branch = useGitBranch(cwd, activityState.activity === "idle"); + // Se vuelve a leer al cambiar el directorio efectivo (shell o worktree del agente) o al quedar inactivo. + const branch = useGitBranch(effectiveCwd, activityState.activity === "idle"); const [status, setStatus] = useState("starting"); const [error, setError] = useState(null); const [contextMenu, setContextMenu] = useState<{ @@ -122,14 +125,14 @@ export function TerminalPane(props: Props) { onMeta(paneId, { shellName: info?.name ?? null, agents, - cwd, + cwd: effectiveCwd, startedAt, branch, agentState, activity: activityState.activity, attention: activityState.attention, }), - [paneId, info?.name, agents, cwd, startedAt, branch, agentState, activityState, onMeta], + [paneId, info?.name, agents, effectiveCwd, startedAt, branch, agentState, activityState, onMeta], ); // Mirar el panel (enfocarlo, volver a la ventana, a su sesión o restaurarlo): lo que // pedía atención ya se vio. @@ -211,13 +214,19 @@ export function TerminalPane(props: Props) { setStatus("done"); setAgents([]); setStartedAt(null); + setAgentCwd(null); setActivityState(initialActivity); setAgentState(null); void closeRef.current(); }, - onAgent: (newAgents, newStartedAt) => { + onAgent: (newAgents, newStartedAt, newAgentCwd) => { setAgents(newAgents); setStartedAt(newStartedAt); + setAgentCwd(newAgentCwd); + if (newAgents.length === 0) { + setActivityState(initialActivity); + setAgentState(null); + } }, onAgentState: (next) => { setAgentState(next); @@ -313,9 +322,9 @@ export function TerminalPane(props: Props) { {name} - {cwd && ( + {effectiveCwd && ( - + )} @@ -326,7 +335,7 @@ export function TerminalPane(props: Props) { {localUser.initials} - + } title="Minimize" onClick={props.onToggleMinimize} /> } title="Maximize" onClick={props.onToggleMaximize} /> } title="Close" onClick={() => void close()} /> diff --git a/apps/desktop/src/services/terminalApi.ts b/apps/desktop/src/services/terminalApi.ts index 96ae178..b04b762 100644 --- a/apps/desktop/src/services/terminalApi.ts +++ b/apps/desktop/src/services/terminalApi.ts @@ -9,16 +9,22 @@ type OutputPayload = { terminalId: string; data: number[] }; type ExitPayload = { terminalId: string }; /// El primero es el agente principal de la terminal; los siguientes son los que /// ese agente tiene anidados. `startedAt`: arranque del principal, en segundos -/// desde la época Unix (`null` si no corre ninguno). -type AgentPayload = { terminalId: string; agents: AgentId[]; startedAt: number | null }; +/// desde la época Unix (`null` si no corre ninguno). `cwd`: directorio activo del +/// agente o subagente (`null` si no corre ninguno). +type AgentPayload = { + terminalId: string; + agents: AgentId[]; + startedAt: number | null; + cwd?: string | null; +}; /// Estado reducido del agente (ver `agentState.ts`); el núcleo solo lo emite cuando cambia. type AgentStatePayload = { terminalId: string; state: AgentState }; export type TerminalHandlers = { onOutput: (data: Uint8Array) => void; onExit: () => void; - /// Agentes conocidos que corren en la terminal (lista vacía = ninguno). - onAgent: (agents: AgentId[], startedAt: number | null) => void; + /// Agentes conocidos que corren en la terminal (lista vacía = ninguno) y su directorio activo. + onAgent: (agents: AgentId[], startedAt: number | null, cwd: string | null) => void; /// Estado del agente reducido por el núcleo a partir de los `AgentEvent`s de la terminal. onAgentState?: (state: AgentState) => void; }; @@ -28,7 +34,10 @@ const handlers = new Map(); // (el PTY arranca dentro de open_shell), así que se guarda hasta entonces. const pending = new Map(); const exitedEarly = new Set(); -const agentEarly = new Map(); +const agentEarly = new Map< + string, + { agents: AgentId[]; startedAt: number | null; cwd: string | null } +>(); const agentStateEarly = new Map(); let listening: Promise | null = null; @@ -49,8 +58,9 @@ function ensureListening(): Promise { listen("terminal-agent", ({ payload }) => { const handler = handlers.get(payload.terminalId); const startedAt = payload.startedAt ?? null; - if (handler) handler.onAgent(payload.agents, startedAt); - else agentEarly.set(payload.terminalId, { agents: payload.agents, startedAt }); + const cwd = payload.cwd ?? null; + if (handler) handler.onAgent(payload.agents, startedAt, cwd); + else agentEarly.set(payload.terminalId, { agents: payload.agents, startedAt, cwd }); }), listen("terminal-agent-state", ({ payload }) => { const handler = handlers.get(payload.terminalId); @@ -115,7 +125,7 @@ export function attachTerminal(terminalId: string, h: TerminalHandlers): () => v for (const chunk of pending.get(terminalId) ?? []) h.onOutput(chunk); pending.delete(terminalId); const agentInfo = agentEarly.get(terminalId); - if (agentInfo) h.onAgent(agentInfo.agents, agentInfo.startedAt); + if (agentInfo) h.onAgent(agentInfo.agents, agentInfo.startedAt, agentInfo.cwd); agentEarly.delete(terminalId); const agentState = agentStateEarly.get(terminalId); if (agentState) h.onAgentState?.(agentState); diff --git a/odd/tasks/repo-issues-6-7.md b/odd/tasks/repo-issues-6-7.md new file mode 100644 index 0000000..a6e79ee --- /dev/null +++ b/odd/tasks/repo-issues-6-7.md @@ -0,0 +1,27 @@ +# Objective: Resolve GitHub Issues #6 (sidebar agent state & attention) and #7 (agent/subagent process CWD & worktree branch tracking) +Branch: `fix/sidebar-agent-attention` (#6), `feat/git-worktree-branch-tracking` (#7) | Delivery: `single-pr` per issue into `develop` | Test runner: `pnpm -r test && cargo test --workspace` + +## Specs + +- **S1** (`#6`): Quote from user & issue #6: `"fix(sidebar): agent state detection unreliable and 'Needs attention' clears prematurely on window focus/hover"` — `"1. 'Needs attention' appears in the sidebar for a terminal running an agent. 2. As soon as the user hovers over or brings focus towards the application window, the 'Needs attention' badge disappears immediately before the user can inspect or acknowledge it. 3. The detector appears inaccurate regarding whether an agent is actively working, waiting for an LLM response, or awaiting user approval."` — `"Differentiate real user interaction/acknowledgement from window focus/pointer events."` + - **Scope & Checks**: + - Do not clear `attention` (`Needs attention`) merely because `windowFocused` transitions `false -> true` on an already-focused pane; clear `attention` only when the pane itself transitions to active focus while watching (`shouldClearAttentionOnWatchChange`), or on explicit user interaction with the pane (`pointerdown`, `keydown` in terminal, or clicking the terminal item in the sidebar). + - Do not emit generic PTY byte-silence `StatusChanged` events for terminals with no active agent (`tree.primary.is_none()`), and clear stale `AgentState` / `ActivityTracker` state when an agent process exits back to the shell so shell prompt output does not trigger false `Working` / `Idle` / `Needs attention` states. + - Checks: `pnpm --filter @opencollab/ui test`, `pnpm --filter @opencollab/desktop test`, `cargo test --workspace`. +- **S2** (`#7`): Quote from user & issue #7: `"feat(git): track worktrees and isolate branch context for agents and subagents"` — `"Inspeccionar el CWD real del proceso del agente/subagente activo (sysinfo con with_cwd) para actualizar la rama de Git mostrada cuando trabajan en un worktree"` — `"Subagent / Process Working Directory Inspection: Inspect the active working directory of running agent processes (or expose an integration/hook for agents) to detect when execution moves into a worktree."` + - **Scope & Checks**: + - Refresh process CWDs in `SysinfoProcessInspector` (`ProcessRefreshKind::nothing().with_cmd(UpdateKind::OnlyIfNotSet).with_cwd(UpdateKind::Always)`) and include `cwd: Option` in `ProcessInfo` and `AgentTree` (tracking the deepest active agent/subagent CWD or primary agent CWD when running inside a worktree/subfolder). + - Include `agent_cwd: Option` in `terminal-agent` event payload so `TerminalPane` resolves `useGitBranch` against `agentCwd ?? cwd`, updating the Git branch shown in the sidebar thread when an agent or subagent works in a separate Git worktree without mutating the parent shell's OSC 7 `cwd`. + - Checks: `cargo test --workspace`, `pnpm --filter @opencollab/desktop test`, `pnpm --filter @opencollab/desktop build`. + +## Tasks + +- [x] **T1** (`S1`, route: `inline`, commit: `aac0a8e`, RED/GREEN: `src/activity.test.ts` 3 failed -> 15 passed, `cargo test -p desktop` 42 passed): Prevent premature `Needs attention` clearance on window focus/hover and isolate agent activity tracking from raw shell output. +- [x] **T2** (`S2`, route: `inline`, commit: `b91c09c`, RED/GREEN: `reports_active_cwd_of_primary_agent_and_prefers_subagent_worktree_cwd` & `sees_the_current_process_and_its_parent` failed -> passed): Inspect active agent/subagent process CWD via `sysinfo` and use it for per-pane Git branch resolution in worktrees. + +## Log + +- **L1** (2026-10-24): `"take de repo issues and fix it"` +- **L2** (2026-10-24): User selected `#8` first (completed and merged in PR #18), then confirmed for `#6` and `#7`: `"Resolver primero #6 en fix/sidebar-agent-attention y luego #7 en feat/git-worktree-branch-tracking (cada uno desde develop)"` and `"Inspeccionar el CWD real del proceso del agente/subagente activo (sysinfo con with_cwd) para actualizar la rama de Git mostrada cuando trabajan en un worktree"`. +- **L3** (2026-10-24): Completed T1 (`aac0a8e`) on `fix/sidebar-agent-attention` (PR #19 created). +- **L4** (2026-10-24): Completed T2 (`b91c09c`) on `feat/git-worktree-branch-tracking`. All tests passing. diff --git a/packages/ui/src/components/Sidebar.tsx b/packages/ui/src/components/Sidebar.tsx index fcd8614..a550aac 100644 --- a/packages/ui/src/components/Sidebar.tsx +++ b/packages/ui/src/components/Sidebar.tsx @@ -202,7 +202,7 @@ export function Sidebar(props: Props) { className={`thread-item ${focused ? "thread-item--focused" : ""} ${ hasUptime ? "thread-item--has-uptime" : "" }`} - title={label} + title={stateLabel ? `${label} · ${stateLabel}` : label} onClick={select} > diff --git a/packages/ui/src/components/ThreadMeta.css b/packages/ui/src/components/ThreadMeta.css index bc8c9da..0f50830 100644 --- a/packages/ui/src/components/ThreadMeta.css +++ b/packages/ui/src/components/ThreadMeta.css @@ -24,23 +24,30 @@ flex: 1; align-items: center; min-width: 0; + gap: 2px; } .thread-heading .thread-label { - flex: 0 1 auto; + flex: 1 1 auto; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .thread-state { display: inline-flex; align-items: center; gap: 4px; - flex: 0 100 auto; + flex: 0 0 auto; + max-width: calc(100% - 32px); min-width: 0; - color: var(--text-faint); + font-size: 11px; } .thread-state-sep { white-space: pre; + color: var(--text-faint); } .thread-state-label { @@ -53,27 +60,54 @@ flex: none; } -.thread-state--working { +/* Estado Idle: visible y distinguible con texto muted e icono gray */ +.thread-state--idle { color: var(--text-muted); } +.thread-state--idle svg { + color: var(--gray); +} + +/* Estado Working: destacado con texto claro y pulso activo de acento */ +.thread-state--working { + color: var(--text); + font-weight: 500; +} + .thread-state--working svg { color: var(--accent-soft); animation: thread-meta-pulse 1.4s ease-in-out infinite; } -/* Pide que se mire la terminal o que se apruebe algo: resalta con el acento. */ -.thread-state--attention, +/* Pide que se mire la terminal o que se apruebe algo: resalta con el acento / advertencia. */ +.thread-state--attention { + color: var(--amber); + font-weight: 600; +} + +.thread-state--attention svg { + color: var(--amber); +} + .thread-state--approval { color: var(--accent-soft); font-weight: 600; } +.thread-state--approval svg { + color: var(--accent-soft); +} + .thread-state--error { color: var(--red); font-weight: 600; } +.thread-state--error svg { + color: var(--red); +} + /* Herramienta en curso (`Bash: echo hi`) o detalle del error: una línea, recortada. */ .thread-meta-tool { min-width: 0; diff --git a/packages/ui/src/styles.css b/packages/ui/src/styles.css index 614593c..5e63052 100644 --- a/packages/ui/src/styles.css +++ b/packages/ui/src/styles.css @@ -532,7 +532,7 @@ kbd { } .thread-item--has-uptime { - padding-right: 44px; + padding-right: 38px; } .thread-item:hover { @@ -975,7 +975,8 @@ button.cwd-item:hover { color: var(--text-muted); } -.cwd-item-path { +.cwd-item-path, +.cwd-item-label { flex: 1; min-width: 0; overflow: hidden;