Skip to main content

AI History

The AI History panel is a persistent audit log of every AI call made anywhere in Rostyman — chat, request generation, database AI, workflow generation, compaction, browser test generation, anything that goes through the central AI pipeline. Every row records the prompt, the response, the provider, the model, the workspace, the conversation it belonged to, and the wall-clock duration.

When to use it

  • Compliance: produce a JSON export of every AI call in the last 30 days
  • Debugging: replay an old prompt that "used to work" and isn't working now
  • Cost review: see which models you actually used and which sources triggered the most calls
  • Conversation drill-down: group calls by chat conversation to reconstruct a session

Opening the panel

Open the AI panel (Sparkles icon or Ctrl+J), then switch to the History tab.

Views

Flat list (default)

Newest call first. Each row collapses to a single line with timestamp, source badge, provider, model, prompt preview, duration, and tool-call count.

Click a row to expand its full prompt, response, tool calls (if any), and metadata. From the expanded view you can click the conversation: <id> link to filter the list to that conversation only.

Conversations view

Toggle Conv in the header. The list collapses into one entry per conversation, showing first prompt, total call count, and last activity. Click a conversation to drill down to its full call timeline (flips back to the flat list with a conversation filter pre-applied).

Filters

FilterBehavior
SearchFree-text match against prompt OR response (case-insensitive, debounced 250 ms)
SourceRestrict to one origin: chat, generate-request, db-ai, workflow, compact, etc.
ProviderRestrict to one provider: Claude / OpenAI / Gemini / Copilot / Local CLI / Ollama
From / To datesInclusive date range — midnight start, end-of-day end
ConversationSet automatically when you click a conversation: link from a row

Filters compose — combine date range with provider, etc.

Export

The download icon in the header re-runs the current filter (cap 5000 entries) and downloads the result as rostyman-ai-history-YYYY-MM-DD.json. Every entry includes prompt, response, tool calls, timing, and IDs — sufficient for compliance audit.

Retention

History rows live in the ai_call_log SQLite table. A boot-time sweep deletes rows older than audit.retentionDays (default 90 days). Raise or lower this in Settings → Advanced.

Clearing

Click the trash icon in the header to clear all history. There's no soft-delete here — the log is intended to be audit-only; if you want it gone, it's gone.