mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
fmt(js): npm run fix on merge (#67307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
7db2decbea
commit
ffc69c184b
3 changed files with 8 additions and 11 deletions
|
|
@ -233,13 +233,7 @@ export function useSessionActions({
|
|||
if (routedStoredSessionId === storedIdRotation.previousStoredSessionId) {
|
||||
navigate(sessionRoute(storedIdRotation.nextStoredSessionId), { replace: true })
|
||||
}
|
||||
}, [
|
||||
activeSessionIdRef,
|
||||
getRoutedStoredSessionId,
|
||||
navigate,
|
||||
selectedStoredSessionIdRef,
|
||||
storedIdRotation
|
||||
])
|
||||
}, [activeSessionIdRef, getRoutedStoredSessionId, navigate, selectedStoredSessionIdRef, storedIdRotation])
|
||||
|
||||
const startFreshSessionDraft = useCallback(
|
||||
(options: boolean | FreshSessionDraftOptions = false) => {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,9 @@ describe('useSessionStateCache — stored-id rotation provenance', () => {
|
|||
let cache!: Cache
|
||||
|
||||
setActiveSessionId('runtime-A')
|
||||
render(<Harness activeSessionId="runtime-A" onReady={value => (cache = value)} selectedStoredSessionId="stored-A" />)
|
||||
render(
|
||||
<Harness activeSessionId="runtime-A" onReady={value => (cache = value)} selectedStoredSessionId="stored-A" />
|
||||
)
|
||||
|
||||
act(() => {
|
||||
cache.updateSessionState('runtime-A', state => state, 'stored-A')
|
||||
|
|
@ -63,7 +65,9 @@ describe('useSessionStateCache — stored-id rotation provenance', () => {
|
|||
let cache!: Cache
|
||||
|
||||
setActiveSessionId('runtime-B')
|
||||
render(<Harness activeSessionId="runtime-B" onReady={value => (cache = value)} selectedStoredSessionId="stored-B" />)
|
||||
render(
|
||||
<Harness activeSessionId="runtime-B" onReady={value => (cache = value)} selectedStoredSessionId="stored-B" />
|
||||
)
|
||||
|
||||
act(() => {
|
||||
cache.updateSessionState('runtime-A', state => state, 'stored-A')
|
||||
|
|
|
|||
|
|
@ -39,8 +39,7 @@ describe('reactive unhide in a shared (Focus) group', () => {
|
|||
)
|
||||
)
|
||||
|
||||
const activeOf = (paneId: string) =>
|
||||
model.findGroupOfPane(tree.$layoutTree.get()!, paneId)?.active ?? null
|
||||
const activeOf = (paneId: string) => model.findGroupOfPane(tree.$layoutTree.get()!, paneId)?.active ?? null
|
||||
|
||||
return { activeOf, tree }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue