feat(claw): show the user's profile in the bottom-left account
android / debug (push) Successful in 2m26s
android / release (push) Successful in 2m19s
ci / checks (push) Successful in 3m48s
ci / test (push) Successful in 1m24s
ci / chart (push) Successful in 7s
ci / docker (push) Successful in 2m11s
ci / web (push) Successful in 15s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 2m17s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 16s
ci / publish-edge-chart (push) Successful in 4s

The web shell's account showed the agent's identity and the word
"connected", which left no way to see or set the human's own name and
picture.

The claw now stores a user profile beside the bootstrap files and
serves it over /v1/user and /v1/user/avatar. The agent sets it during
onboarding with user_profile_set; the bottom-left account in both
sidebars renders it and opens an editor for the name and picture. The
prompt context exposes user_name and user_profile, and bootstrap
documents resolve {{ user_name }}, so USER.md and the other markdown
files can address the user by name.

The connection state stays with the unreachable banner, so the sidebars
no longer report it.

Unit and HTTP tests cover the profile store, the tool, the variable
expansion, and the routes. fmt, clippy, cargo test, nuxt typecheck, and
nuxt build pass; both sidebars and the editor checked at 1280x800.
This commit is contained in:
vhaudiquet committed 2026-12-01 18:30:50 +01:00
1 parent debc21a89f
commit cb1948742f
17 files changed
+1226 -149

No files matched your search

+4 -3
View File
@@ -1,7 +1,8 @@
<script setup lang="ts">
// The agent's face at one size: the uploaded avatar when there is one,
// the name's initial when not. The precedence lives here and nowhere
// else.
// A face at one size: the uploaded avatar when there is one, the
// name's initial when not. The agent's own pages and the user's
// bottom-left account both render through it, so the precedence lives
// here and nowhere else.
const props = withDefaults(
defineProps<{
/** The uploaded avatar's object URL, when the claw has one. */