Skip to content

Managing Sessions

Sessions are the unit of work in Ptah. You’ll typically have one per task and switch between them throughout the day, the same way you switch between editor tabs.

Session tabs

  • New session button — top of the Chat panel, creates an empty session in the current workspace.
  • KeyboardCtrl/Cmd + N inside the Chat panel.
  • From a template — right-click the new-session button and pick a starter template (e.g., “Bug triage”, “Code review”). See Templates.

New sessions inherit the workspace’s default agent and model. You can change both from the header before your first message.

Ptah uses a tab bar at the top of the Chat panel. Click any tab to switch.

ShortcutAction
Ctrl/Cmd + TabNext session
Ctrl/Cmd + Shift + TabPrevious session
Ctrl/Cmd + 1..9Jump to the Nth tab
Ctrl/Cmd + WClose current tab (session is preserved on disk)

Closing a tab doesn’t delete the session — it just removes it from the active tab bar. You can reopen it from the Session history panel.

By default Ptah auto-generates a session title from your first message. To rename:

  • Double-click the tab label, or
  • Right-click → Rename, or
  • Open the session header and edit the title field inline.

Titles are free-form strings up to 100 characters.

Right-click a tab → Pin. Pinned tabs:

  • Stay at the left of the tab bar
  • Survive app restarts
  • Can be unpinned the same way

Useful for a “scratchpad” chat you always want one click away.

Right-click → Delete or open Session history and use the bulk action menu.

Right-click → Duplicate creates a copy with all messages up to the selected point. Great for exploring a “what if I try a different approach from here” branch without contaminating your main thread.

Right-click → Archive hides the session from the tab bar and default history view but keeps the file on disk. Toggle Show archived in the history filter to see it again. Archive is reversible; delete is not.

<workspace-root>/.ptah/sessions/
active/
sess_01h8z...json # current + recently-open sessions
archive/
sess_01h8k...json # archived sessions
index.json # lightweight title/date index for fast search

Ptah watches this folder. If you drop in a session file from another machine, it appears immediately in the history view.