mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Add config sync mode to prevent config file overwrites on startup (#63)
Fixes #62 - Config file in workspace volume is now the source of truth * Preserve raw config content with comments instead of re-stringifying parsed JSON * Sync provider credentials to OpenCode server when adding or removing API keys * Add error handling for session errors with toast notifications and inline message display * Refactor provider settings to manage API keys directly with edit/delete support
This commit is contained in:
1 parent
f3505de0e1
commit
078fbd1a05
13 files changed
+605
-240
No files matched your search
@@ -4,11 +4,13 @@ import { MessageActionButtons } from './MessageActionButtons'
|
||||
import { UserMessageActionButtons } from './UserMessageActionButtons'
|
||||
import { EditableUserMessage, ClickableUserMessage } from './EditableUserMessage'
|
||||
import { SessionTodoDisplay } from './SessionTodoDisplay'
|
||||
import { MessageError } from './MessageError'
|
||||
import type { MessageWithParts } from '@/api/types'
|
||||
import { useSessionStatusForSession } from '@/stores/sessionStatusStore'
|
||||
import { useSessionTodos } from '@/stores/sessionTodosStore'
|
||||
import type { components } from '@/api/opencode-types'
|
||||
import type { Todo } from '@/components/message/SessionTodoDisplay'
|
||||
import type { OpenCodeError } from '@/lib/opencode-errors'
|
||||
|
||||
function getMessageTextContent(msg: MessageWithParts): string {
|
||||
return msg.parts
|
||||
@@ -255,6 +257,9 @@ const state = latestTodoPart.state
|
||||
</div>
|
||||
))
|
||||
)}
|
||||
{msg.info.role === 'assistant' && 'error' in msg.info && msg.info.error && (
|
||||
<MessageError error={msg.info.error as OpenCodeError} />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user