Skip to content

Commit 7bb6dc7

Browse files
dmitriyzhukclaude
andcommitted
fix(admin): default extension userId to 'admin', not the Ranch user UUID
userId in this panel is ctx.from on the runtime side — the value the agent uses to namespace browser-state files (Telegram chat id or 'admin' for the admin agent). The Ranch login UUID was a confusing wrong default that produced unusable tokens. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 667ace5 commit 7bb6dc7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

admin/slices/browser/components/browser/ExtensionPanel.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ const config = useRuntimeConfig();
2424
const auth = useAuthStore();
2525
2626
const agentId = ref('');
27-
const userId = ref(auth.user?.id ?? 'admin');
27+
// "User ID within agent" = ctx.from on the runtime side (Telegram chat
28+
// user, or "admin" for the admin agent). It is NOT the Ranch login user
29+
// UUID — that one auto-completes nothing useful here. Default to the
30+
// most common case ("admin") and let the operator override.
31+
const userId = ref('admin');
2832
const ttlDays = ref(30);
2933
const token = ref<string | null>(null);
3034
const tokenExp = ref<number | null>(null);

0 commit comments

Comments
 (0)