Skip to content

feat: add greeting field to all workflow configs#61

Merged
jeremyeder merged 1 commit intoambient-code:mainfrom
jeremyeder:feat/add-greeting-field
Mar 9, 2026
Merged

feat: add greeting field to all workflow configs#61
jeremyeder merged 1 commit intoambient-code:mainfrom
jeremyeder:feat/add-greeting-field

Conversation

@jeremyeder
Copy link
Contributor

Summary

Adds a greeting field to every workflow's ambient.json. The greeting is user-facing text displayed instantly when a workflow is selected, while startupPrompt is sent to Claude in the background.

Field Purpose Visible to user?
greeting Instant feedback text shown in UI Yes — immediately
startupPrompt Instruction sent to Claude to initialize the session No — hidden message

All 6 workflows now have both fields. Validated with the CI lint workflow.

Companion PR: ambient-code/platform#849

🤖 Generated with Claude Code

Adds a user-facing `greeting` field to every workflow's ambient.json.
The greeting is displayed instantly when a user selects a workflow,
providing immediate feedback while the startupPrompt is sent to Claude
in the background.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jeremyeder added a commit to jeremyeder/platform that referenced this pull request Mar 9, 2026
Backend parses and serves the new `greeting` field from ambient.json.
Frontend displays the greeting instantly when a workflow tile is clicked,
while the startupPrompt is sent to Claude in the background. Users see
immediate feedback with zero perceived latency.

Companion PR: ambient-code/workflows#61

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jeremyeder jeremyeder merged commit b0be09d into ambient-code:main Mar 9, 2026
1 check passed
jeremyeder added a commit to jeremyeder/platform that referenced this pull request Mar 9, 2026
…ode#780 + ambient-code#846)

Replaces the server-side workflow greeting round-trip with a client-side
approach that provides instant feedback when users select a workflow.

Backend:
- Add `startupPrompt` and `greeting` fields to OOTBWorkflow struct
- Parse both fields from ambient.json in workflow repos

Frontend:
- Display `greeting` text with typewriter streaming effect below tiles
- Add `hidden` option to sendMessage for system-initiated messages
- Remove 3-second hardcoded sleep after workflow activation
- Remove server-side workflowGreeting state (no LLM round-trip needed)

Runner:
- Remove server-side greeting trigger logic (no longer needed)
- Clean up unused imports (aiohttp, uuid, load_ambient_config)

Tests:
- Add vitest regression tests for stale greeting and race conditions
- Add vitest.config.ts for frontend unit testing

Companion: ambient-code/workflows#61 (ambient.json fixes)

Supersedes ambient-code#780 and ambient-code#846.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant