Skip to content
29 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Chat controls, public profiles, shadcn selects, and no Docs tab in a project1/**
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.2 * An agent session's card in chat (`card.kind === "session"`), on old
3 * messages: g1t's agents posted it and kept it current. Agents no longer
4 * exist, so it is read-only and its state is where it was left; nothing
5 * pulses, since nothing is happening.
Chat controls, public profiles, shadcn selects, and no Docs tab in a project6 */
7
8/** The states an agent session's card shows. */
9export const SESSION_STATES = ["Queued", "Working", "Waiting on helpers", "Needs approval", "Done", "Stopped", "Failed"] as const;
10
11export type SessionState = (typeof SESSION_STATES)[number];
12
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.13/** How a state reads: its badge tone, and whether it is happening now (a soft pulse: never, now). */
Chat controls, public profiles, shadcn selects, and no Docs tab in a project14export type SessionChip = { tone: "neutral" | "accent" | "info" | "warn" | "success" | "danger"; live: boolean };
15
16const CHIPS: Record<string, SessionChip> = {
17 queued: { tone: "neutral", live: false },
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.18 working: { tone: "accent", live: false },
19 "waiting on helpers": { tone: "info", live: false },
Chat controls, public profiles, shadcn selects, and no Docs tab in a project20 "needs approval": { tone: "warn", live: false },
21 done: { tone: "success", live: false },
22 stopped: { tone: "neutral", live: false },
23 failed: { tone: "danger", live: false },
24};
25
26/** A session card's state chip; a state it does not know reads quietly. */
27export function sessionChip(state: string | null | undefined): SessionChip {
28 return CHIPS[String(state ?? "").trim().toLowerCase()] ?? { tone: "neutral", live: false };
29}