mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-23 16:36:23 +00:00
fmt(js): npm run fix on merge (#68305)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
f657840e06
commit
477c08b447
3 changed files with 5 additions and 3 deletions
|
|
@ -20,12 +20,12 @@ import type { ChatMessage } from '@/lib/chat-messages'
|
|||
import { quickModelOptions, sessionTitle } from '@/lib/chat-runtime'
|
||||
import { useIncrementalExternalStoreRuntime } from '@/lib/incremental-external-store-runtime'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { migrateSessionDraft } from '@/store/composer'
|
||||
import { migrateQueuedPrompts } from '@/store/composer-queue'
|
||||
import { $pinnedSessionIds } from '@/store/layout'
|
||||
import { $petActive } from '@/store/pet'
|
||||
import { $petOverlayActive } from '@/store/pet-overlay'
|
||||
import { $gatewaySwapTarget, $profiles } from '@/store/profile'
|
||||
import { migrateSessionDraft } from '@/store/composer'
|
||||
import { migrateQueuedPrompts } from '@/store/composer-queue'
|
||||
import {
|
||||
$contextSuggestions,
|
||||
$freshDraftReady,
|
||||
|
|
@ -281,6 +281,7 @@ export function ChatView({
|
|||
const selectedSessionId = useStore(view.$storedId)
|
||||
const sessions = useStore($sessions)
|
||||
const resumeExhaustedSessionId = useStore($resumeExhaustedSessionId)
|
||||
|
||||
// Durable composer/queue scope (lineage root) so auto-compression tip rotation
|
||||
// does not wipe an in-progress draft or orphan /queue entries.
|
||||
const queueSessionKey = useMemo(
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import { afterEach, describe, expect, it, vi } from 'vitest'
|
|||
|
||||
import { getSessionMessages, type SessionInfo } from '@/hermes'
|
||||
import { createClientSessionState } from '@/lib/chat-runtime'
|
||||
import { clearSessionDraft, stashSessionDraft, takeSessionDraft } from '@/store/composer'
|
||||
import { $activeGatewayProfile, $newChatProfile, ensureGatewayProfile } from '@/store/profile'
|
||||
import { $projectScope, $projectTree, ALL_PROJECTS } from '@/store/projects'
|
||||
import { clearSessionDraft, stashSessionDraft, takeSessionDraft } from '@/store/composer'
|
||||
import {
|
||||
$activeSessionId,
|
||||
$activeSessionStoredIdRotation,
|
||||
|
|
|
|||
|
|
@ -245,6 +245,7 @@ export function useSessionActions({
|
|||
const nextId = storedIdRotation.nextStoredSessionId
|
||||
const sessions = $sessions.get()
|
||||
const resolvedNext = resolveComposerSessionKey(nextId, sessions)
|
||||
|
||||
const durableKey =
|
||||
resolvedNext && resolvedNext !== nextId
|
||||
? resolvedNext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue