Skip to content

Make task history previews content-first#330

Open
yuna-fuzzland wants to merge 8 commits into
berabuddies:masterfrom
yuna-fuzzland:codex/task-preview-summary
Open

Make task history previews content-first#330
yuna-fuzzland wants to merge 8 commits into
berabuddies:masterfrom
yuna-fuzzland:codex/task-preview-summary

Conversation

@yuna-fuzzland

@yuna-fuzzland yuna-fuzzland commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add shared monitor task text sanitization for subjects and descriptions so visible task text is content-first.
  • Sanitize monitor task create/update paths, daemon workflow snapshots, and desktop fallback rendering.
  • Backfill legacy monitor task display reads without putting Telegram/source/judgment wording into the visible description.

Test Plan

  • cargo fmt --check
  • pnpm exec svelte-check --tsconfig ./tsconfig.json
  • cargo test -p puffer-core monitor_task_text::tests::sanitizer_prefers_original_message_quotes
  • cargo test -p puffer-core runtime::tests::tool_execution::workflow::workflow_monitor_task
  • cargo test -p puffer-cli workflow_snapshot_includes_monitor_tasks
  • PUFFER_DESKTOP_TEST_PORT=1429 pnpm exec playwright test tests/tasks-ui.spec.ts -g "monitor task detail sanitizes"

Note: svelte-check still reports the existing Workflows.svelte unused CSS selector warnings.

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

@yuna-fuzzland is attempting to deploy a commit to the fuzzland Team on Vercel.

A member of the Team first needs to authorize it.

@yuna-fuzzland

Copy link
Copy Markdown
Contributor Author

Follow-up update:\n\n- Added content-first rules for monitor TaskCreate descriptions.\n- Descriptions now instruct the triage agent to omit Telegram/source prefixes, keep source info in metadata, and summarize clear errors, questions, requests, or incomplete content according to the agreed preview rules.\n- Covered both daemon and command-helper monitor prompts with prompt contract tests.\n\nVerified with:\n- cargo test -p puffer-cli monitor_prompt\n- cargo test -p puffer-core monitor_prompt\n- cargo test -p puffer-cli message_summary

@yuna-fuzzland

Copy link
Copy Markdown
Contributor Author

Follow-up: tightened monitor task text handling at persistence time.\n\n- Sanitizes monitor TaskCreate subject/description before storing.\n- Sanitizes monitor TaskUpdate subject/description before storing, including existing monitor tasks and incoming monitor metadata.\n- Removes source/judgment language such as Telegram, message asks, actionable request case-insensitively.\n- Keeps source details in metadata only; existing persisted tasks are not migrated.\n- Added create/update regression tests and specs/puffer-core/252.md.

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