Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(agentic-ide): show the gesture card over the title line, not only the bar's slivers

rubenluetke10-beepdb952f25283d
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
index c7ec90eea8..de3b574a38 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
@@ -1030,6 +1030,33 @@ describe("pane header actions", () => {
vi.useRealTimers();
});
+ it("opens the gesture card over the title line, where the old tooltip lived", () => {
+ vi.useFakeTimers();
+ render(
+ <AgenticTerminal
+ name="Dana"
+ displayName="Claude Code"
+ recap="Fix the failing login test"
+ appearance="dark"
+ fontSize={13}
+ onToggleMaximize={() => undefined}
+ onArrangeStart={() => undefined}
+ />,
+ );
+
+ // The recap line is a button, but it spans nearly the whole bar — the
+ // card must show there, not only on the bar's empty slivers.
+ fireEvent.pointerOver(screen.getByTestId("pane-recap-Dana"));
+ act(() => {
+ vi.advanceTimersByTime(600);
+ });
+
+ const tip = screen.getByTestId("pane-header-tip-Dana");
+ expect(tip.textContent).toContain("Drag");
+ expect(tip.textContent).toContain("Read the full note");
+ vi.useRealTimers();
+ });
+
it("renames instead of maximizing when the call-sign is the target", () => {
const onToggleMaximize = vi.fn();
render(
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
index 6fa10cc61f..510f55f858 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
@@ -2459,6 +2459,11 @@ function PaneHeader({
// is reached for. Only rows whose gesture is actually wired appear — a
// maximized pane cannot be dragged, so its card never claims it can.
const gestures: Array<{ chip: string; text: string }> = [];
+ if ((recap ?? "").trim())
+ gestures.push({
+ chip: "Click title",
+ text: "Read the full note of what this terminal is doing.",
+ });
if (onArrangeStart)
gestures.push({
chip: "Drag",
@@ -2497,12 +2502,16 @@ function PaneHeader({
if (target?.closest("button, a, input, [role='menuitem']")) return;
onArrangeStart(event);
}}
- // A settled hover on the bar itself asks what the bar can do; a hover
- // on one of its controls is about THAT control (they keep their own
- // labels), so the card yields to them instead of stacking on top.
+ // A settled hover on the bar asks what the bar can do. The card yields
+ // only to controls that carry their OWN native label (`[title]` — the
+ // action cluster, the pencil, the seat chip), so two explanations never
+ // stack. Everything else on the bar belongs to the bar — including the
+ // recap line, which is a button but spans nearly the whole width: the
+ // first version suppressed the card there, and "hover the title" is
+ // exactly where people ask.
onPointerOver={(event) => {
const target = event.target as HTMLElement | null;
- if (target?.closest("button, a, input, [role='menuitem']")) hideTip();
+ if (target?.closest("[title], input, [role='menuitem']")) hideTip();
else if (gestures.length > 0) scheduleTip();
}}
onPointerLeave={hideTip}