diff --git a/src/frontend/app.js b/src/frontend/app.js index eec57c8..fbaeb04 100644 --- a/src/frontend/app.js +++ b/src/frontend/app.js @@ -1441,10 +1441,20 @@ function renderCard(s, idx) { html += '' + tagHtml; html += ''; html += ''; - // Open the session's project folder in the in-app terminal with the agent's - // resume command prefilled (awaiting Enter). + // Two launch actions for a session with a known project folder: + // • native terminal (iTerm2/Terminal.app/…) via /api/launch — a terminal + // icon; resumes CLI agents, "open in Cursor" for Cursor, hidden for the + // VS Code-only Copilot Chat (no terminal to resume into). + // • in-app Workspace terminal (▶) with the resume command prefilled. if (s.git_root || s.project) { - html += ''; + var _projPath = s.git_root || s.project; + var _termIcon = ''; + if (s.tool === 'cursor') { + html += ''; + } else if (s.tool !== 'copilot-chat') { + html += ''; + } + html += ''; } if (s.has_detail) { var btnTitle = sessionTitles[s.id] ? 'Regenerate AI title' : 'Generate AI title';