Problem
Long documents and code are hard to work with inside a chat. Each revision adds another copy, making it difficult to follow the conversation and find the latest version.
Solution
Show documents, code, and other reusable output in a separate panel beside the conversation. Give the panel its own scroll area so people can read the output while keeping their place in the chat.
Keep revisions together, with the latest version displayed and earlier versions available to review or restore. This saves people from searching through messages for a previous draft.
Use the panel for content people will edit or use elsewhere. Keep short answers in the conversation. Let people move content into or out of the panel when the automatic choice doesn’t suit their task.
Include actions that fit the content, such as downloading a document or previewing a page. If people can edit in the panel, make sure the AI uses those edits in its next response.
Use when
The AI produces a document, code, or other content that people will keep, revise, or use elsewhere.
Don’t use when
The answer is an answer. Explanations, comparisons and short code fragments belong in the conversation, and moving them out adds a click and removes them from the context the reader is holding.
Trade-offs
A side panel leaves less room for the conversation. People may need to look back and forth to connect an explanation with the content it describes.
Revisions can also make earlier messages confusing if they refer to content that has changed. Keep previous versions accessible.
On small screens, people may need to switch between the conversation and the panel. Preserve their place in both views.
Checklist
- What promotes output into the panel, and can the viewer override it in both directions?
- Are previous versions reachable, and is the current one labelled?
- If the viewer edits in the panel, does the model see the edit next turn?
- What actions does the panel carry, and do they match the output’s type?
- Does the transcript keep a readable reference to what was produced?
- What happens on a phone?
- Can the artifact be exported or shared on its own?
- Is content still streaming into the panel visible without switching to it?
- What happens when one conversation produces several different artifacts?
- Does closing the panel destroy anything?
Compare
Claude opens a side panel for documents and code and keeps a version history on it, so the conversation stays a conversation while the output accumulates revisions in one place. ChatGPT offers a canvas that turns the output into a directly editable surface with inline controls, moving the panel from a viewer toward an editor. Gemini routes long output into Google Docs instead. The container problem goes away because the artifact lands in a product built to hold one. v0 inverts the arrangement entirely and makes the preview the main surface with the conversation as a narrow rail. When every turn produces a new version of one thing, that’s the right call.
Related
Streaming response shows output as it is generated, including inside a panel. Code block actions provide controls for code within a chat message. Response collapse keeps long messages out of the way when a separate panel isn’t needed.
Assistant sidebar places the conversation beside an existing workspace. Message turn structures the chat messages that refer to the panel’s content.