Skip to content

feat(agent): generate reactive task titles - #754

Open
AnthonyRonning wants to merge 1 commit into
masterfrom
codex-maple-agent-titles-maple
Open

feat(agent): generate reactive task titles#754
AnthonyRonning wants to merge 1 commit into
masterfrom
codex-maple-agent-titles-maple

Conversation

@AnthonyRonning

Copy link
Copy Markdown
Contributor

Summary

  • Generate semantic Agent task titles during the first response using Goose's existing naming prompt, fast-provider path, output cleanup, and session persistence.
  • Keep Maple's prompt-derived title as an immediate and failure fallback.
  • Publish successful titles through the existing SessionUpdated flow so the header and sidebar update reactively.
  • Limit automatic naming to pristine New task sessions, preserving source-defined and user-set titles such as Buzz ACP.

Why

Agent tasks currently keep a truncated excerpt of the first prompt rather than receiving a semantic title.

Goose's built-in naming scheduler is detached from Maple's tracked run, can continue past Stop/logout, and may rename across the first three user turns. This change instead invokes Goose naming inside Maple's tracked first-turn lifecycle, with a child cancellation token, bounded timeout and completion grace, and provider-future draining to preserve account and credential-lifetime guarantees.

This uses Goose's configured fast-model policy rather than changing the shared GOOSE_FAST_MODEL, which also affects compaction and other Goose operations.

Related work

Validation

  • Production frontend build
  • Frontend tests: 524 passed
  • Focused Agent title tests: 7 passed
  • Rust all-targets tests: 280 passed, 2 ignored
  • Clippy (existing warnings only)
  • Rust formatting
  • git diff --check

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying maple with  Cloudflare Pages  Cloudflare Pages

Latest commit: a91b516
Status: ✅  Deploy successful!
Preview URL: https://c0ea1a3d.maple-ca8.pages.dev
Branch Preview URL: https://codex-maple-agent-titles-map.maple-ca8.pages.dev

View logs

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