Skip to content

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

Merged
AnthonyRonning merged 3 commits into
masterfrom
codex-maple-agent-titles-maple
Aug 9, 2026
Merged

feat(agent): generate reactive task titles#754
AnthonyRonning merged 3 commits into
masterfrom
codex-maple-agent-titles-maple

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Stack

This remains position 2 of native GitHub stack #757. PR #745 is merged, and GitHub has retargeted this PR to master.

Summary

  • Preserve the progressive Agent title UX: New task becomes an immediate first-message preview, then an independent semantic title.
  • Generate the semantic title with the same dedicated Llama policy used by Maple Chat: llama3-3-70b, the first 500 Unicode characters, a 3-5 word prompt, 15 output tokens, and thinking disabled.
  • Persist the generated title through Goose session storage and publish a standalone SessionUpdated event so both the header and sidebar react after the main response has already finished.
  • Keep source-defined and future user-defined titles authoritative. Only a pristine default task is eligible, and authority is rechecked before persistence and UI publication.
  • Reconcile session-list snapshots monotonically so a slower refresh cannot overwrite a newer reactive title or hide a task created while the refresh was in flight.

Why

The first implementation allowed semantic naming only a 500 ms grace period after the main response. A short prompt such as hey how are you? can receive a fast answer, so the title request was cancelled before it completed and the prompt preview became permanent.

Title generation is now a separately tracked session task. It starts after the first prompt is durably handled, does not block the composer or compete with the response stream, and can finish after runFinished. Runtime stop, logout, and session deletion still cancel and join the task before account or session state is removed. First-turn error and cancellation paths preserve retry eligibility or continue naming a prompt that was already persisted.

Goose built-in automatic scheduling remains disabled because it is detached, may rename during the first three turns, and does not match Maple title authority semantics. Maple still uses Goose provider and session boundaries; the small Maple-owned layer supplies title-specific model policy and lifecycle ownership.

Validation

  • Exact fast-greeting regression with delayed title completion
  • Rust all-target tests: 300 passed, 2 ignored
  • Frontend tests: 587 passed
  • Frontend production build and TypeScript typecheck
  • Focused stale-snapshot reconciliation tests: 3 passed
  • Clippy: existing patched tao warnings only
  • Rust and frontend formatting
  • git diff --check
  • Managed OpenSecret service smoke

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 9, 2026

Copy link
Copy Markdown

Deploying maple with  Cloudflare Pages  Cloudflare Pages

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

View logs

@AnthonyRonning
AnthonyRonning force-pushed the codex-maple-agent-titles-maple branch from a91b516 to f977009 Compare August 9, 2026 19:18
@AnthonyRonning
AnthonyRonning changed the base branch from master to codex-agent-mode-sidebar-maple August 9, 2026 19:18
Base automatically changed from codex-agent-mode-sidebar-maple to master August 9, 2026 19:30
@AnthonyRonning
AnthonyRonning force-pushed the codex-maple-agent-titles-maple branch from f977009 to 59e93ab Compare August 9, 2026 19:33
@AnthonyRonning
AnthonyRonning force-pushed the codex-maple-agent-titles-maple branch from 59e93ab to 5f82ef9 Compare August 9, 2026 20:48
@AnthonyRonning
AnthonyRonning merged commit 116cdcc into master Aug 9, 2026
18 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex-maple-agent-titles-maple branch August 9, 2026 21:20
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