Skip to content

feat: customize agent welcome prompts - #197402

Merged
roboclaw-bot merged 38 commits into
mainfrom
openclaw/grand-shell-3
Nov 18, 2026
Merged

roboclaw-bot merged 38 commits into
mainfrom
openclaw/grand-shell-3

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Agents offer generic welcome prompts instead of the tasks their authors recommend.

User Impact

On an agent’s main/new-chat page:

  • With recent chats, show the recent-chat list only.
  • Without recent chats, use the agent’s configured recommendedPrompts instead of the defaults.
  • An unset or empty list keeps the existing defaults, including “What can you do?”.
  • An authored description replaces generic welcome guidance; required placement/terminal hints still take priority. Incognito help remains available without shifting the agent identity.

Existing permission, model-setup, incognito, and phone visibility rules remain unchanged. Opening the page sends nothing; clicking a starter submits its text normally.

Why This Change Was Made

Reuse ordinary agent metadata and the existing recents-or-suggestions layout. Optional description and starter metadata travel through agents.list; starters share the existing three-prompt/128-code-point validation and whitespace normalization.

Template pages, install-time task selection, bootstrap, and Retry are restored to their pre-PR behavior. Templates may supply welcome metadata in CLAW.md, but it is used only by the installed agent’s welcome page. There is no selected-task setup state or additional workflow.

Evidence

  • Follow-up: agent-description hint and before/after screenshots.

  • Scope: 34 changed files, down from the original 60; no general test-allowance or UI-size-budget increase. Current net test delta is +434 lines. CI still mechanically requires a record despite the documented required-regression exemption, so the exact 34-line excess is allocated specifically to the reproduced description-bearing Incognito geometry/popover regressions; no assertions were removed. Recommendations retain the existing recents guard and click/send owners.

  • Prior feature checks: 181 focused tests, five built-UI browser cases, core/UI types, targeted lint/format, generated validators and docs checks passed. The docs-only follow-up passes MDX, format and whitespace checks; Add/Retry documentation is byte-identical to the retained comparison base.

  • Prior picker measurement: 37 WebKit and 37 Chromium picker cases passed after making the geometry fixture wait for the existing opening animation. The original 0.5 px centering and 6 px spacing assertions remain unchanged; no production layout/CSS changed. The exact cause of the preceding CI-only offset is not established.

  • Real Gateway + real model: the built UI loaded all three configured starters from an unmocked Gateway via agents.list. Opening created no session. Clicking the first starter created one session and persisted exactly one matching user message in chat.history. Actual local Qwen3 4B Instruct inference replied: “Cedar Notes search works offline and will ship on Friday.” Gateway, browser and model cleanup completed.

  • Latest-stable upgrade: official npm OpenClaw 2026.11.4 produced the agent configuration, SQLite session and transcript through its CLI/Gateway. The candidate opened that same state, then cold-restarted again with a third distinct process ID. Original agent settings, session identity/label and exact transcript roles/content remained intact; newly configured prompts also survived restart and reached agents.list. Only main’s existing Doctor normalization retired the legacy heartbeat enrollment; this PR adds no migration.

  • Prior-head CI: revision ed34c0676132 passed the required gate: 152 check runs plus three successful commit-status contexts, with complete pagination recorded. That run predates the conflict integration and is not current-head CI for the candidate.

  • Conflict-repair validation: published signed candidate 0b56450e3b22 integrates captured main 0c19bcdf2939. The only conflict was the generated configuration-baseline checksum manifest, recreated with its owning generator. All original feature added/deleted lines are preserved apart from that manifest. 167 focused tests passed (schema/config, Template install, agent-list projection, welcome behavior, wrapper import inventory and 37 Chromium picker cases), as did UI typechecking, generated-baseline verification and whitespace checks. Fresh independent static review of the exact candidate tree found no actionable issues. Existing real-Gateway, real-model, latest-stable and visual proof is retained for unchanged feature behavior; it was not repeated for checksum-only conflict repair. That candidate was later superseded by the description-first revision and correction below.

  • Description-first follow-up: @vyctorbrzezowski removed redundant generic guidance when an agent has a description. Fresh review exposed a real 11px Incognito identity shift on phones. Signed correction 42a5f0601c7e floats only status-without-text, preserving textual hints and the existing popover lifecycle. All 11 focused Chromium welcome/Incognito cases passed, plus UI typecheck, targeted TSX/CSS lint and format. Fresh independent review of the exact corrected tree found no actionable issues. Inspected clean and annotated regression comparison; Current-head CI completed with the two unrelated failures qualified below.

  • CI-only correction: signed 80e0e68f4494 adds that exact 34-line record and fixes the observed picker-test no-shadow error by renaming one local; no production code or visual inputs change. The owning ratchet, targeted lint/format and all 37 Chromium picker cases pass. Independent review found no actionable issues. Prior-revision CI also exposed three source-independent browser failures: a heartbeat assertion stale after main’s action-summary change (457486d), a WebKit sheet-dismissal stall, and final Inbox Escape cleanup. The latter timing causes remain unproven; focused local heartbeat/Inbox replays passed but do not prove a repair, and local WebKit could not connect (zero tests). These are not represented as passing CI or waived security.

  • Final CI qualification: exact 80e0e68f4494, run 44214240324, attempt 1: 66 successful, 23 skipped, two failed root jobs and their failed aggregate; no cancelled or running jobs. security-fast passed. UI E2E shard 6 fails only because main 457486d intentionally changed the heartbeat summary to “Used tools” while its unchanged E2E still expects “Heartbeat Respond”. Android 4K-page native validation stopped during dependency resolution when Maven returned HTTP 429 for the Kotlin Compose plugin; this was not an application/native assertion failure. The actual tested merge (5c8778e36df8, baseline 4dbd70ff5fd3) has identical heartbeat owners/test and Android/toolchain/workflow inputs to baseline. The automatic table reports UI “unknown” and Android “new”; the independent source/error qualification—not those labels—establishes their unrelated cause. Landing selects the explicit native inherited-failure exception under the scoped maintainer request. CI remains red; no security or enforced-review waiver and no rerun is claimed. The other Android matrix case, prior sidebar/Inbox failures, ratchet and lint checks passed in this attempt.

  • Review: the original hosted review’s P3 documentation finding was fixed and its Gateway/latest-stable evidence supplied. This landing subsequently received fresh independent static review of the mechanical integration, description-first revision, Incognito correction and CI-only repair. The identified layout finding was reproduced and fixed; final correction reviews have no remaining actionable findings. Hosted review remains advisory; enforced checks/reviews are not waived.

Clean comparison

Retained original comparison: main 8b2831e1daae before; 98e4e7028263 after. This is the original feature comparison; the later description-first adjustment and Incognito stability correction are shown in the linked follow-up evidence. Actual built Control UI, same synthetic Gateway fixture with no recent chats, 1280×900, light theme and reduced motion. Main ignores the optional welcome metadata; the candidate shows the agent description and replaces the default starters with the configured list. Gateway responses are mocked.

Before

Before: default welcome starters on original comparison main

After

After: agent description and three authored welcome starters

Annotated comparison

Measured callouts on copies of the same clean frames.

Before

Before: default starters highlighted

After

After: authored agent starters highlighted

Two CI-only fixture repairs remain because their failures were observed in this PR's CI: typed-exit/JSON error assertions and first lazy-import readiness in the model-picker test. No production lifecycle behavior is changed; the Windows fixture and OAuth import are now already covered by main.

Contributor credit: Miguel Branco. Description-first welcome refinement: Vyctor H. Brzezowski (@vyctorbrzezowski). Landing integration and regression correction requested by @Patrick-Erichsen.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

Worked on by:
- @miguelbranco80

Co-authored-by: miguelbranco80 <[email protected]>
OpenClaw-Publication: f7f9c483-3556-418a-b89c-9f05c650f6e9
@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: M labels Nov 11, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 11, 2026 22:34
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds agent descriptions and configurable welcome prompts through agent configuration and Template metadata.

Example: The briefing agent has no recent chats and recommends “Brief me on recent changes”.

  • Before: The welcome screen shows generic default starters.
  • After: The welcome screen shows the authored starter, and clicking it submits that text through the normal message flow.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused implementation with inspected visual evidence, a concrete real-runtime report, compatible optional metadata, and successful exact-head CI.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Inspected screenshots establish the visual change; the public proof report exercises the built UI against an unmocked Gateway and real local model, including passive opening, one clicked submission, and persisted history.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Agent authors cannot offer task-specific starters on an installed agent’s welcome screen.
Reason: The maintainer-authored direction provides focused user value, preserves defaults, and avoids the earlier Template setup expansion.

Merge readiness

✅ Ready for maintainer review

This PR provides a useful, maintainer-directed feature without actionable correctness or security findings; the previous documentation finding is resolved.

Priority: P2
Reviewed head: ed34c06761321c61541c24d0ba8a54f0f477b0a4

Before merge

None.

Findings

None.

Agent review details

How this fits together

Agent configuration and Template manifests supply metadata that the Gateway exposes through agents.list for the Control UI welcome renderer.

flowchart LR
  A[Agent configuration] --> C[Metadata validation]
  B[Template manifest] --> C
  C --> D[Gateway agents list]
  D --> E[Welcome screen]
  E --> F[Normal message submission]
  F --> G[Agent conversation]
Loading

Technical review

Best possible solution:

Merge the additive metadata path while preserving the existing welcome visibility, defaults, and submission owners.

Do we have a high-confidence way to reproduce the issue?

This is a feature addition; current-main source confirms the fixed starter list, and the supplied comparisons demonstrate the requested customization.

Is this the best way to solve the issue?

The change uses existing configuration, Template installation, Gateway projection, validation, and rendering owners without introducing another workflow or state owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c8d5cf52b417.

Provenance checked

  • Welcome recents and permission-aware defaults changes intended behavior with a stated reason (6209443: Offer guests actionable starters while preserving the recents-first welcome behavior established by d8512fc.)
  • Plugin recommended-prompt protocol schema keeps the original intent (071ea83: Bound authored plugin starters to three normalized strings of at most 128 Unicode code points; this PR shares that unchanged contract.)
  • CLI JSON failure fixture keeps the original intent (4940240: Reflect the intentional typed JSON failure path while retaining concrete diagnostic and pre-lookup rejection assertions.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +51, Tests +392, Docs +71, Generated 0, Other +2. Total +516 across 29 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 14 69 18 +51
Tests 10 400 8 +392
Docs 2 71 0 +71
Config 0 0 0 0
Generated 2 3 3 0
Other 1 2 0 +2
Total 29 545 29 +516

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production and test changes Production +69/-18; tests +400/-8 Growth covers metadata validation and transport plus distinct installation, rendering, selection, visibility, and submission boundaries.
Configuration addition 1 new optional agent setting: recommendedPrompts The existing description setting gains welcome presentation; omitted or empty starters retain defaults.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Useful optional welcome customization with limited impact and unchanged default behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-11-11T23:06:05.391Z sha 2e13d12 :: needs changes before merge. :: [P2] Narrow the optional parsed value before reading its starter list | [P2] Regenerate the config baseline for the new setting | [P2] Allocate the justified regression-test growth | [P2] Offset the added CSS within the existing asset budget
  • reviewed 2026-11-15T08:14:46.652Z sha 2b04472 :: blocked before merge. :: none
  • reviewed 2026-11-15T22:43:31.018Z sha b8c6902 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-16T16:45:17.305Z sha 7bc21dc :: blocked before merge. :: none
  • reviewed 2026-11-17T09:12:16.807Z sha 98e4e70 :: blocked before merge. :: [P3] Restore the Template setup documentation to its retained behavior

Reviewed November 17, 2026, 5:54 AM ET / 10:54 UTC (Revision 6).

roboclaw-bot and others added 3 commits November 12, 2026 19:50
Worked on by:
- @miguelbranco80

Co-authored-by: miguelbranco80 <[email protected]>
OpenClaw-Publication: 28196fe5-a3b8-450c-887e-1d13215da220
Co-authored-by: miguelbranco80 <[email protected]>
Worked on by:
- @miguelbranco80

Co-authored-by: miguelbranco80 <[email protected]>
OpenClaw-Publication: 77f4c989-15c1-4ad2-97a0-3e8c80d0448a
roboclaw-bot and others added 2 commits November 14, 2026 10:26
Co-authored-by: miguelbranco80 <[email protected]>
Worked on by:
- @miguelbranco80

Co-authored-by: miguelbranco80 <[email protected]>
OpenClaw-Publication: 9007c73e-dbaf-4633-ac88-e455ac3b0999
@roboclaw-bot roboclaw-bot changed the title feat(ui): customize agent welcome descriptions and conversation starters feat: recommend agent tasks during template setup and new chats Nov 14, 2026
Co-authored-by: miguelbranco80 <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Nov 17, 2026
roboclaw-bot and others added 2 commits November 17, 2026 09:55
Worked on by:
- @miguelbranco80

Co-authored-by: miguelbranco80 <[email protected]>
OpenClaw-Publication: a3b5155d-b0a8-47b6-af51-641423db2ee8
Worked on by:
- @miguelbranco80

Co-authored-by: miguelbranco80 <[email protected]>
OpenClaw-Publication: 1c4c1248-1b28-4b7a-bfc8-974e0c1a6885
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 17, 2026
Merge main at 0c19bcd into the
welcome-prompt branch. Resolve the configuration-baseline checksum conflict
with the owning generator; preserve the existing feature semantics and proof.

Co-authored-by: miguelbranco80 <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 17, 2026 23:41
@vyctorbrzezowski

Copy link
Copy Markdown
Member

I hid the generic “Pick where this session works.” hint when the welcome screen already shows the agent’s description. Agents without a description still show the hint. Required placement and terminal guidance and the Incognito note remain available.

Verified with 22 Chromium tests against the built UI using a Gateway fixture, plus UI type checking and lint on the changed files.

Before: description and generic hint

Agent welcome before the copy adjustment

After: description only

Agent welcome showing the description without the generic hint

Float status-only Incognito help beneath the description instead of inserting
an identity grid row. Preserve textual guidance layout and the existing
controlled popover lifecycle. Cover description-bearing phone and desktop
geometry, dismissal, focus and reopening in the docked welcome regression.

Co-authored-by: miguelbranco80 <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>
@roboclaw-bot

roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator Author

Description-first welcome: stable Incognito follow-up

Current revision: 42a5f0601c7e74f732d48c7b9c4a2e77da106d64.

The existing desktop before/after demonstrates the description-first copy change; those assets remain valid and are not uploaded again. Fresh current-revision desktop capture also confirmed the description and custom prompt layout.

The new description branch exposed an Incognito geometry regression on phones: enabling Incognito inserted a status row and shifted the centered identity upward by 11px. The correction floats status-only help without changing textual placement/terminal guidance or the existing popover owner.

Clean comparison — portrait phone, Incognito help open

Before — intentional failing e51b23e baseline: identity jumps 11px on enabling Incognito.

Before: description-bearing phone identity shifts upward with Incognito

After — 42a5f060: avatar, heading, description, composer and controls retain their pre-toggle positions.

After: description-bearing phone identity stays in place with Incognito

Measured annotations

Before annotation: 11px upward movement

After annotation: stable identity position

Capture provenance: actual built Control UI in Chromium, synthetic MockGateway Main agent with “Tracks project decisions.”, 390×844, light theme, reduced motion. Baseline is an inspected regression diagnostic frame; passing candidate is a normal screenshot from the existing E2E lane. Temporary capture-only test instrumentation was restored; no product DOM/CSS substitution, private diagnostics, media or capture code is committed.

Focused verification: 11 Chromium welcome/Incognito cases passed (description/no-description, 390px/320px/landscape phone and desktop; popover dismiss, focus, reopen and toggle off), UI typecheck, touched TSX lint, CSS lint and formatting. Fresh independent review found no remaining actionable issues. Earlier unchanged feature/Gateway/model/upgrade proof remains historical evidence; current-head CI is still required.

Keep the required description-bearing Incognito geometry and popover cases.
Record exactly 34 lines of regression allocation because the current machine
guard still requires it for the 434-line net test delta despite the documented
required-regression exemption. Do not increase the general allowance or trim
coverage. Rename the picker animation surface local to avoid shadowing the
existing failure diagnostic variable; retain its assertions and settlement.

Co-authored-by: miguelbranco80 <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit 08df471 into main Nov 18, 2026
167 of 171 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/grand-shell-3 branch November 18, 2026 01:52
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
Use an agent’s configured description and recommended prompts in the existing chat welcome. Preserve recents precedence, empty-list defaults, click-only submission, permission/model setup and terminal/placement guidance. Prefer authored descriptions over redundant generic guidance while keeping Incognito help and stable phone identity geometry.

Integrate main, regenerate the sole conflicting baseline checksum manifest, and repair the reproduced 11px description-bearing Incognito shift in the owning presentation layer.

Validation: 167 focused checks on mechanical integration; 11 focused current-candidate Chromium welcome/Incognito tests, UI types, TSX/CSS lint and formatting. Fresh independent source reviews found no remaining actionable findings. Original Gateway/model/upgrade proof reused for unchanged inputs. Current-head CI completed red only for independently attributed main-owned heartbeat expectation and external Maven HTTP429; use the explicit inherited-failure exception. Security-fast passed; security/enforced-review gates remain mandatory. No failed job is claimed green.

Net test delta is +434 lines; excess covers required Incognito geometry/popover regressions, the exact 34-line allocation is retained because the machine guard still requires it despite the documented required-regression exemption. No general allowance increase.

Co-authored-by: miguelbranco80 <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants