diff --git a/apps/fe/CLAUDE.md b/apps/fe/CLAUDE.md
index 13e4725d..72d91c8f 100644
--- a/apps/fe/CLAUDE.md
+++ b/apps/fe/CLAUDE.md
@@ -62,7 +62,7 @@ src/
tests/ unit tests
```
-Routes: `/` sign in (`SignInScreen`, design L1 and T1.1; once signed in it opens the newest Mind, or `/minds/new` when there is none, except a try-out with no Mind yet, which stays: Back from Choose a Mind returns to sign-in, and the try-out button reads "Continue your try-out" and reuses that session instead of making a new one; Ancung, 9 Nov), `/minds/new` Choose a Mind, and `/minds/[mindId]/{chat,chat/[threadId],wallet,skills,autopilot,connections,attack,settings}` inside `AppShell`; `/minds/[mindId]` redirects to chat and an unknown Mind is not found. The Builder (`/autopilot/new`, `/autopilot/{job}`) opens from Autopilot (no nav item) and has no app shell: Mind pages sit in route groups, `(shell)` with `AppShell` in its layout and `(focus)` for the Builder, while `[mindId]/layout.tsx` keeps `MindGate` and `ChatRunProvider` for both (Ancung, 9 Nov: a page without the sidebar to focus; the design's B1 is full screen too). URLs didn't change.
+Routes: `/` sign in (`SignInScreen`, design L1 and T1.1; once signed in it opens the newest Mind, or `/minds/new` when there is none, except a try-out with no Mind yet, which stays: Back from Choose a Mind returns to sign-in, and the guest button reads "Pick up where you left off" under "Continue as guest" and reuses that session instead of making a new one; Ancung, 9 Nov), `/minds/new` Choose a Mind, and `/minds/[mindId]/{chat,chat/[threadId],wallet,skills,autopilot,connections,attack,settings}` inside `AppShell`; `/minds/[mindId]` redirects to chat and an unknown Mind is not found. The Builder (`/autopilot/new`, `/autopilot/{job}`) opens from Autopilot (no nav item) and has no app shell: Mind pages sit in route groups, `(shell)` with `AppShell` in its layout and `(focus)` for the Builder, while `[mindId]/layout.tsx` keeps `MindGate` and `ChatRunProvider` for both (Ancung, 9 Nov: a page without the sidebar to focus; the design's B1 is full screen too). URLs didn't change.
App shell (`src/components/layout`, design N1): phone below 768 px (`md`) gets `MobileHeader` (menu with an amber dot while an approval waits, Mind switcher sheet) and a left drawer; tablet 768 to 1279 gets the 72 px rail whose top button opens the full sidebar over the page; desktop from 1280 (`xl`) gets the 256 px sidebar that folds into the rail (saved in `localStorage` as `hellonear.sidebar.folded`). `MindSwitcher` and `AccountMenu` (Appearance System/Light/Dark, Sign out) each have trigger variants for these places. Nav items live in `nav.ts`. In the full sidebar and the phone drawer the menu and Recent chats scroll together, with the scrollbar on the sidebar's edge (`SidebarScroll`, decided 9 Nov with Ancung, like Claude; before, only Recent chats scrolled); the logo, the Mind and the account stay put. Where more of the menu is hidden above or below, it fades into the sidebar's colour (24 px at the top, 32 px at the bottom), stopping short of the scrollbar, like the chat under its header (Ancung, 11 Nov); each fade shows only when there is something to scroll to on that side.
@@ -201,7 +201,7 @@ Imports: `@/*` → `src/*`, `@app/*` → `app/*`. Keep route files in `app/` thi
- **Hosting (#125):** `deploy/deploy.sh` builds this app on the deploying machine (`next build` with `NEXT_PUBLIC_API_URL`, the only build-time setting) and the demo box runs it with `next start` on port 3000 (`deploy/systemd/hellonear-fe.service`), behind the tunnel at `https://app.hellonear.xyz` (the old `hellonear.jameshub.fun` redirects there, `next.config.js`; the apex `hellonear.xyz` serves the landing page on its own port since 12 Nov, #266, so its redirect here was removed). A merge to `main` deploys it with the backend and engine (`deploy/README.md`). A new build-time env var must be added to `deploy.sh` too, or the hosted build won't have it.
- Call the backend with `api()` from `src/lib/api.ts` (`credentials: "include"`, JSON). Failures throw `ApiError` with `status`, `code` (the backend's `error`) and `details`.
- Sign-in (`src/modules/auth`, NEP-413, `docs/api-contract.md` §7): connect a wallet if none is connected, `POST /auth/challenge`, the wallet signs exactly `{ message, recipient, nonce }` (nonce decoded from base64 to 32 bytes; recipient comes from the challenge, `hellonear.app` on the hosted demo), then `POST /auth/login`. `useSignIn` signs through `connector.wallet()` / `connector.connect()` because the hook's own `signNEP413Message` reads wallet state from the previous render. `useSession` is the `["session"]` query (`GET /me`, `null` on 401); `useSignOut` logs out, disconnects the wallet and clears the query cache. The account shown in the app is the session's `nearAccountId`, not the wallet's.
-- `SignInScreen` (`/`, design "3 · Start" L1, T1.1): the forest photo from the design (Unsplash, saved as `public/sign-in/forest.jpg` so the page doesn't load it from outside; desktop only) with the "Your limits stay yours." caption, then three choices. **Meteor Wallet** (with Meteor's own logo, `MeteorLogo` in `AppLogos.tsx`, the icon the official manifest lists, copied as is) opens Meteor straight away (`connector.connect({ walletId: "meteor-wallet" })`, the id in the official manifest `hot-dao/near-selector`, read 9 Nov); **Other NEAR wallets** opens the NEAR Connect list; after an "or" divider, **Try without a wallet** (`POST /auth/demo`). The chosen button shows "Waiting for Meteor"; a canceled signature says "Sign-in was canceled in the wallet. Nothing changed." (L1.3); `429 demo_rate_limited` and a backend without try-out mode (404) have their own lines (T1.2). "Welcome back." (L1.4) shows for the last wallet account that signed in on this browser (`hellonear.lastAccount` in localStorage, the account name only). "What is a Mind?" opens L1.5 as a dialog.
+- `SignInScreen` (`/`, design "3 · Start" L1, T1.1): the forest photo from the design (Unsplash, saved as `public/sign-in/forest.jpg` so the page doesn't load it from outside; desktop only) with the "Your limits stay yours." caption, then three choices. **Meteor Wallet** (with Meteor's own logo, `MeteorLogo` in `AppLogos.tsx`, the icon the official manifest lists, copied as is) opens Meteor straight away (`connector.connect({ walletId: "meteor-wallet" })`, the id in the official manifest `hot-dao/near-selector`, read 9 Nov); **Other NEAR wallets** opens the NEAR Connect list; after an "or" divider, **Continue as guest** ("No sign-up. 20 messages with a shared test wallet.", a person icon; `POST /auth/demo`). On screen the try-out is called a guest session everywhere ("Guest: 18 of 20 messages left", "Guest session finished", "Not available to guests", "A guest Mind can't be deleted"; Axel, via Ancung, 12 Nov: "Try without a wallet" read technical, and its line was cut off); the code keeps `tryOut` and `demo`, as the API does. The chosen button shows "Waiting for Meteor"; a canceled signature says "Sign-in was canceled in the wallet. Nothing changed." (L1.3); `429 demo_rate_limited` and a backend without try-out mode (404) have their own lines (T1.2). "Welcome back." (L1.4) shows for the last wallet account that signed in on this browser (`hellonear.lastAccount` in localStorage, the account name only). "What is a Mind?" opens L1.5 as a dialog.
- Try-out in the chat (T1.3, T1.5): a lime banner with the messages left and what the shared test wallet allows, and "Connect a wallet" (`useLeaveTryOut`: ends the try-out session and goes back to `/`). Messages left come from `useTryOutLeft`: the backend counts every run of the user's Minds against 20 (`assertDemoRunAllowed`), so the FE counts each Mind's `GET …/runs` the same way; no backend change. At 0 (or a `429 demo_run_limit`) the composer locks ("Try-out finished") and an end card offers Connect Meteor. Owner actions in a try-out (T1.4, `TryOutLockedDialog` in `src/modules/auth/components`): the buttons stay (Add funds, Freeze, Set limits, Set up a wallet on Wallet; Freeze on Approvals; Add key on Connections), and each opens "Connect a wallet to do this" with why that action needs one (`lockedReason`). The per-payment row shows "Locked" instead of Edit, as in the design. A centered dialog from `sm`, a sheet from the bottom on phones. "Connect Meteor" opens Meteor in the same click (`useSwitchToWallet`): a wallet login replaces the try-out's cookie (`POST /auth/login` sets a new one, `apps/be/src/server.ts`), then a full reload to `/` so nothing from the try-out stays cached. Checked by Ancung on 9 Nov with Meteor (testnet).
- Proven 8 Nov: a Meteor (testnet) login from `http://localhost:3000` in Chrome against the hosted API (`HELLONEAR_API_URL=https://api-hellonear.jameshub.fun` in `.env.local`, after #71 was deployed); the session survives a reload. Not checked yet: Safari and other wallets.
diff --git a/apps/fe/src/modules/auth/components/SignInScreen.tsx b/apps/fe/src/modules/auth/components/SignInScreen.tsx
index 347e3ba5..c9043cf6 100644
--- a/apps/fe/src/modules/auth/components/SignInScreen.tsx
+++ b/apps/fe/src/modules/auth/components/SignInScreen.tsx
@@ -2,7 +2,7 @@
import Image from "next/image"
import { useRouter } from "next/navigation"
-import { ArrowRightIcon, CircleXIcon, FlaskConicalIcon, GlobeIcon, KeyRoundIcon, WalletMinimalIcon } from "lucide-react"
+import { ArrowRightIcon, CircleXIcon, GlobeIcon, KeyRoundIcon, UserRoundIcon, WalletMinimalIcon } from "lucide-react"
import { useEffect, useState, type ReactNode } from "react"
import { cn } from "cn"
import { ErrorRetry } from "@/components/elements/ErrorRetry"
@@ -147,9 +147,9 @@ export function SignInScreen() {
: }
- title={emptyTryOut ? "Continue your try-out" : "Try without a wallet"}
- note={emptyTryOut ? "Pick a Mind and start chatting." : "No sign-up. 20 messages and a shared test wallet. Deleted after 7 days."}
+ icon={demo.isPending ? : }
+ title="Continue as guest"
+ note={emptyTryOut ? "Pick up where you left off." : "No sign-up. 20 messages with a shared test wallet."}
/>
diff --git a/apps/fe/src/modules/auth/components/TryOutLockedDialog.tsx b/apps/fe/src/modules/auth/components/TryOutLockedDialog.tsx
index 389b3a58..80d16f0b 100644
--- a/apps/fe/src/modules/auth/components/TryOutLockedDialog.tsx
+++ b/apps/fe/src/modules/auth/components/TryOutLockedDialog.tsx
@@ -15,17 +15,17 @@ export type LockedAction = "add-funds" | "freeze" | "limits" | "wallet" | "keys"
export function lockedReason(action: LockedAction, name: string): string {
switch (action) {
case "freeze":
- return `Freezing needs the owner's signature. In a try-out, ${name} uses a shared test wallet that only HelloNear can change.`
+ return `Freezing needs the owner's signature. As a guest, ${name} uses a shared test wallet that only HelloNear can change.`
case "add-funds":
- return `Funds come from your own wallet. In a try-out, ${name} uses a shared test wallet that HelloNear fills.`
+ return `Funds come from your own wallet. As a guest, ${name} uses a shared test wallet that HelloNear fills.`
case "limits":
- return `Changing limits needs the owner's signature. In a try-out, ${name} uses a shared test wallet with limits HelloNear sets.`
+ return `Changing limits needs the owner's signature. As a guest, ${name} uses a shared test wallet with limits HelloNear sets.`
case "wallet":
- return `A wallet of ${name}'s own needs your signature for its limits. In a try-out, ${name} pays from a shared test wallet.`
+ return `A wallet of ${name}'s own needs your signature for its limits. As a guest, ${name} pays from a shared test wallet.`
case "keys":
- return "Keys are kept for your account, and a try-out can't keep them. Connect a wallet to save keys for your own services."
+ return "Keys are kept for your account, and a guest session can't keep them. Connect a wallet to save keys for your own services."
case "autopilot":
- return `Jobs that run on a schedule need your own account. In a try-out, you can still run ${name}'s jobs by hand with Run now.`
+ return `Jobs that run on a schedule need your own account. As a guest, you can still run ${name}'s jobs by hand with Run now.`
}
}
@@ -68,7 +68,7 @@ export function TryOutLockedDialog({ action, name, onClose }: { action: LockedAc
)}
-
Connecting keeps nothing from this try-out. You start fresh with your own Mind and limits.
+
Connecting keeps nothing from this guest session. You start fresh with your own Mind and limits.
}
Use this
- {demo && In a try-out it stays off; you can run it with Run now.}
+ {demo && As a guest it stays off; you can run it with Run now.}
{(add.error || setSkills.error) && Could not add it. Please try again later.}
>
)}
diff --git a/apps/fe/src/modules/autopilot/components/JobDetail.tsx b/apps/fe/src/modules/autopilot/components/JobDetail.tsx
index 4d0c55e8..5cb24e43 100644
--- a/apps/fe/src/modules/autopilot/components/JobDetail.tsx
+++ b/apps/fe/src/modules/autopilot/components/JobDetail.tsx
@@ -54,7 +54,7 @@ export function JobDetail({ mindId, name, workflowId }: { mindId: string; name:
isApiCode(err, "missing_tools")
? `${name} doesn't have a skill this job uses. Add it in Skills first.`
: isApiCode(err, "demo_run_limit")
- ? "That's all the messages this try-out has."
+ ? "That's all the messages a guest gets."
: "The job did not start. Please try again later."
)
}
diff --git a/apps/fe/src/modules/chat/components/ChatScreen.tsx b/apps/fe/src/modules/chat/components/ChatScreen.tsx
index 2a5ffb4e..f9371d78 100644
--- a/apps/fe/src/modules/chat/components/ChatScreen.tsx
+++ b/apps/fe/src/modules/chat/components/ChatScreen.tsx
@@ -163,7 +163,7 @@ export function ChatScreen({ mindId, threadId }: { mindId: string; threadId: str
{templateLabel(templateId)}
{/* Not "asks before every payment": an auto-approve rule (#167) can let small ones through. */}
- {tryOut ? ", try-out with a shared test wallet" : limit ? `, payments up to ${limit} NEAR each` : ""}
+ {tryOut ? ", guest with a shared test wallet" : limit ? `, payments up to ${limit} NEAR each` : ""}