What a chat session is
A chat session is a persistent conversation with the agent. TeamCopilot stores:- the messages in the session
- the session title and timestamps
- pending tool and permission requests
- tracked file changes for the session
- usage data for cost and token analytics
Main chat behaviors
In the UI, users can:- start a new session
- continue an existing session
- attach files from the workspace
- review tracked file diffs
- respond to permission requests
- answer agent questions when the assistant is waiting on input
- delete a session when it is no longer needed
Deep links
The app supports session deep links through query parameters:/?tab=ai&session=<session_id>opens a specific session/?tab=ai&newChat=1opens a fresh session flow/?tab=ai&draft=<text>pre-fills a draft message
File attachments
You can attach workspace files in chat messages. Rules:- file paths must stay inside the workspace
- paths are normalized before use
- the agent receives a file URL only after the backend validates the path
Permission requests
When the agent wants to do something sensitive, TeamCopilot may create a permission request. Users can respond with:oncealwaysreject
File diffs
TeamCopilot tracks file changes made during a session and exposes a diff view in the chat UI. The diff panel is useful for:- reviewing what the agent changed
- checking whether an edit matched the user’s intent
- auditing tool-driven file changes after the session
Session states
Sessions can show different states in the UI, including:- active
- pending input
- attention needed
- read
- deleted
Cronjob chat handoff
Some cronjob runs use a chat session as the execution surface. In those cases, TeamCopilot can:- pause a cronjob run when it needs user attention
- resume the run later from the chat UI
- interrupt or terminate the run from the session controls