Upload 9 modified files from chat-switchboard-v0.5.0.zip
This commit is contained in:
@@ -199,34 +199,32 @@ const DebugLog = {
|
||||
getStateSnapshot() {
|
||||
const snap = {};
|
||||
|
||||
// Backend state (redact tokens)
|
||||
if (typeof Backend !== 'undefined') {
|
||||
snap.backend = {
|
||||
baseUrl: Backend.baseUrl || '(empty)',
|
||||
hasAccessToken: !!Backend.accessToken,
|
||||
hasRefreshToken: !!Backend.refreshToken,
|
||||
user: Backend.user ? {
|
||||
username: Backend.user.username,
|
||||
role: Backend.user.role,
|
||||
display_name: Backend.user.display_name
|
||||
// API client state (redact tokens)
|
||||
if (typeof API !== 'undefined') {
|
||||
snap.api = {
|
||||
hasAccessToken: !!API.accessToken,
|
||||
hasRefreshToken: !!API.refreshToken,
|
||||
user: API.user ? {
|
||||
username: API.user.username,
|
||||
role: API.user.role,
|
||||
display_name: API.user.display_name
|
||||
} : null,
|
||||
isConnected: Backend.isConnected,
|
||||
isManaged: Backend.isManaged
|
||||
isAuthed: API.isAuthed,
|
||||
isAdmin: API.isAdmin
|
||||
};
|
||||
}
|
||||
|
||||
// App state
|
||||
if (typeof State !== 'undefined') {
|
||||
snap.state = {
|
||||
chatCount: State.chats?.length || 0,
|
||||
currentChatId: State.currentChatId,
|
||||
modelCount: State.models?.length || 0,
|
||||
isGenerating: State.isGenerating,
|
||||
if (typeof App !== 'undefined') {
|
||||
snap.app = {
|
||||
chatCount: App.chats?.length || 0,
|
||||
currentChatId: App.currentChatId,
|
||||
modelCount: App.models?.length || 0,
|
||||
isGenerating: App.isGenerating,
|
||||
settings: {
|
||||
model: State.settings?.model || '?',
|
||||
stream: State.settings?.stream,
|
||||
apiEndpoint: State.settings?.apiEndpoint ? '(set)' : '(empty)',
|
||||
apiKey: State.settings?.apiKey ? '(set)' : '(empty)',
|
||||
model: App.settings?.model || '?',
|
||||
stream: App.settings?.stream,
|
||||
showThinking: App.settings?.showThinking
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user