mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
refactor: Centralize session ID generation and propagation
This commit is contained in:
parent
95fdc66e7d
commit
d1e23b7c71
20 changed files with 96 additions and 71 deletions
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
import { useState, useEffect } from 'react';
|
||||
import { sessionId } from '@gemini-cli/core';
|
||||
import { Logger } from '@gemini-cli/core';
|
||||
|
||||
/**
|
||||
|
|
@ -14,7 +15,7 @@ export const useLogger = () => {
|
|||
const [logger, setLogger] = useState<Logger | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
const newLogger = new Logger();
|
||||
const newLogger = new Logger(sessionId);
|
||||
/**
|
||||
* Start async initialization, no need to await. Using await slows down the
|
||||
* time from launch to see the gemini-cli prompt and it's better to not save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue