Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/psycheros/src/server/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ export function renderSidebar(conversations: Conversation[]): string {
<span class="sidebar-title">Conversations</span>
<button class="btn btn--primary btn--sm" onclick="Psycheros.newConversation()">+ New</button>
</div>
<nav class="conv-list" id="conv-list" hx-get="/fragments/conv-list" hx-trigger="load" hx-swap="innerHTML">
<nav class="conv-list" id="conv-list" hx-get="/fragments/conv-list" hx-trigger="load, refresh-conv-list" hx-swap="innerHTML">
${renderConversationList(conversations)}
</nav>
<div class="sidebar-footer">
Expand Down
4 changes: 2 additions & 2 deletions packages/psycheros/web/js/psycheros.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ async function newConversation() {
}

// Reload conversation list
htmx.trigger('#conv-list', 'load');
htmx.trigger('#conv-list', 'refresh-conv-list');

// Clear context inspector state — new conversation has no snapshots yet
contextSnapshots = [];
Expand Down Expand Up @@ -1206,7 +1206,7 @@ async function sendMessage() {
});
const conversation = await response.json();
currentConversationId = conversation.id;
htmx.trigger('#conv-list', 'load');
htmx.trigger('#conv-list', 'refresh-conv-list');
history.pushState({}, '', `/c/${conversation.id}`);
} catch (_error) {
showToast('Failed to create conversation');
Expand Down