Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

429 B
Raw Blame
/** The agent session tab holding focus, for actions that act on it (Find in Conversation). */
import { setContext } from "@/platform/context";

export interface FocusedSession {
  openFind(): void;
}

let focused: FocusedSession | null = null;

export function setFocusedSession(session: FocusedSession | null) {
  focused = session;
  setContext("agentSessionFocus", !!session);
}

export const focusedSession = () => focused;