Skip to content

Commit c89d154

Browse files
oceans404claude
andcommitted
Show the "For agents" trigger on every page, not just docs
Requested: the panel belongs everywhere, including the homepage and meeting notes, not only under /docs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent bd6c848 commit c89d154

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/components/ForAgentsPanel/index.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ function focusableItems(container: HTMLElement | null): HTMLElement[] {
3131
}
3232

3333
/**
34-
* The "For agents" panel: a floating trigger in the bottom right of every docs
35-
* page that opens a docked panel of ways to point an AI agent at Stellar.
34+
* The "For agents" panel: a floating trigger in the bottom right of every page
35+
* that opens a docked panel of ways to point an AI agent at Stellar.
3636
*
3737
* The per-client commands come from `src/data/agentTools`, which the Building
3838
* with AI page renders too, so the commands cannot disagree between the two.
3939
*/
4040
export default function ForAgentsPanel(): ReactNode {
4141
const { pathname } = useLocation();
42-
const docsBaseUrl = useBaseUrl('/docs');
4342
const llmsTxtUrl = useBaseUrl(AGENT_SECTIONS.llmsTxt.href);
4443
const [open, setOpen] = useState(false);
4544
const [toolId, selectTool] = useSelectedAgentTool();
@@ -109,11 +108,6 @@ export default function ForAgentsPanel(): ReactNode {
109108
}
110109
}, [open]);
111110

112-
// Docs pages only. The homepage and meeting notes have their own layouts.
113-
if (!pathname.startsWith(docsBaseUrl)) {
114-
return null;
115-
}
116-
117111
const skills = tool.skills[skillsMode];
118112

119113
return (

0 commit comments

Comments
 (0)