Viewer: open the agent skill screen from a #skill link

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
BigBodyCobainandClaude Fable 5.2 committed 2026-11-23 09:08:36 -07:00
1 parent 7c03b779c9
commit c24871b724
1 file changed
+5
+5
View File
@@ -101,6 +101,11 @@ export default function ViewerDashboard() {
const r = localStorage.getItem('sb_right_open');
if (l !== null) setLeftOpen(l === 'true');
if (r !== null) setRightOpen(r === 'true');
// A link ending in #skill opens the agent skill screen directly.
if (window.location.hash === '#skill') {
setSkillOpen(true);
return;
}
// First visit: say what this page is.
if (localStorage.getItem('sb_viewer_about_seen') !== '1') {
setAboutOpen(true);