Skip to content

feat: scheduler polish, chat UI, notifications, cost breakdown#20

Merged
NJannasch merged 1 commit into
mainfrom
feat/scheduler-polish
May 3, 2026
Merged

feat: scheduler polish, chat UI, notifications, cost breakdown#20
NJannasch merged 1 commit into
mainfrom
feat/scheduler-polish

Conversation

@NJannasch

Copy link
Copy Markdown
Owner

Summary

  • MCP config injected for scheduled jobs and quick runs (fixes orchestrator pattern)
  • Browser + in-app notifications when agents complete/fail
  • Chat page: conversational UI with per-message tool/model, MCP access, file browser, markdown rendering
  • Cost breakdown by source (task/scheduled/quick) on Costs page
  • Last output preview on Scheduler job cards
  • Dashboard shows last 4 agent runs with "View all" link to Agents page
  • Chat sessions filtered from Sessions page

Test plan

  • Create a chat, send a message, verify response renders with markdown
  • Change tool/model per message, verify agent switches
  • Ask chat agent to create a file → verify it appears in file browser
  • Ask chat agent to "create a task on the VibeCockpit board" → verify MCP works
  • Trigger a scheduled job → verify notification toast appears when it completes
  • Check Costs page shows "Agent run costs" card
  • Dashboard shows last 4 runs, "View all" links to Agents

🤖 Generated with Claude Code

@NJannasch NJannasch force-pushed the feat/scheduler-polish branch from 2c88455 to 4a9e665 Compare May 3, 2026 10:45
Scheduler polish:
- MCP config injected for RunDirect (scheduled jobs + quick runs get vibecockpit MCP)
- Browser + in-app notifications when agents complete/fail
- Quick Run "Save as scheduled job" checkbox
- Last output preview on scheduler job cards
- Minute-level cron presets

Cost enhancements:
- Per-run cost estimation (matched via session workDir)
- Average cost per scheduled job on Scheduler page
- Costs page "Agent run costs" card with task/scheduled/quick breakdown

Chat UI:
- New Chat page with sidebar nav (chat bubble icon)
- Chat list + conversational message view
- Per-message tool/model override selectors
- MCP servers configurable per chat (vibecockpit always included)
- Chat history stored as JSON in ~/.config/vibecockpit/chats/<id>/
- Agent spawned per message with full conversation context as prompt
- Markdown rendering for assistant responses (code blocks, bold, headings, lists)
- Agent runs in chat directory so artifacts persist

Backend:
- internal/chat/ package: Manager, Chat, Message, SendOpts
- Public runner exports: ToolConfigFor, ResolveBin, BuildArgs, BuildEnvForChat, EnsureMCPConfigPublic
- 5 new API endpoints: GET/POST /api/chats, GET/DELETE /api/chats/:id, POST /api/chats/:id/message
- GET /api/notifications endpoint for agent completion events
@NJannasch NJannasch force-pushed the feat/scheduler-polish branch from 4a9e665 to 6913fae Compare May 3, 2026 10:49
@NJannasch NJannasch merged commit 809c3ef into main May 3, 2026
6 checks passed
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