# Agent chat and source workflow

The authenticated Eve proxy preserves stream version, format, session ID, and tail-index headers. The local HTTPS launcher explicitly passes the local certificate as Next.js's HTTPS CA so server-to-server agent requests retain certificate verification.

Chat shows running/completed tool actions, persistent failures, retry and stop controls, and formatted Markdown. Model choice is stored per account. Responses, sessions, sources and drafts save to Neon. Source analysis uses the verified free extractor model; linked sources can run concurrently under the configured limit.

Cloud refresh uses a pure resource merge. Autosave pauses during agent work, snapshots only changed resources before scheduling a request, and prevents old acknowledgements from replacing a newer cloud baseline. This preserves agent-attached screenshots while retaining unsaved local edits.

Database upserts also retain the newest source screenshot when an older tab submits resource changes. Local edits merge with fresh cloud media instead of deleting it.