-
Notifications
You must be signed in to change notification settings - Fork 647
fix: chat model switcher via websocket, entrypoint permissions, and docker compose fixes #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2005,17 +2005,9 @@ export default function AgentDetailPage() { | |
| // eslint-disable-next-line react-hooks/exhaustive-deps | ||
| }, [agent?.primary_model_id]); | ||
|
|
||
| const handleModelChange = useCallback(async (newModelId: string | null) => { | ||
| const handleModelChange = useCallback((newModelId: string | null) => { | ||
| setOverrideModelId(newModelId); | ||
| if (!id || !newModelId || newModelId === agent?.primary_model_id) return; | ||
| if ((agent as any)?.access_level !== 'manage') return; | ||
| try { | ||
| await agentApi.update(id, { primary_model_id: newModelId }); | ||
| queryClient.invalidateQueries({ queryKey: ['agent', id] }); | ||
| } catch { | ||
| setOverrideModelId(agent?.primary_model_id || null); | ||
| } | ||
| }, [id, agent?.primary_model_id, (agent as any)?.access_level, queryClient]); | ||
| }, []); | ||
|
Comment on lines
+2008
to
+2010
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When a user switches from one chat session to another on the same agent page, this unkeyed Useful? React with 👍 / 👎. |
||
|
|
||
| // Track onboarding kickoff per (agent, session) so the agent only greets | ||
| // once per session. The agent opens the conversation itself — no visible | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the mounted agent data directory itself is already owned by
clawith:clawithbut any nested files or session/workspace subdirectories are still root-owned from a previous run, this new owner check skips the recursivechownand the process drops privileges before it can read/write those children. This regresses the old unconditional recursive fix for partially-owned volumes; check a representative writable child or still repair descendants when the tree is mixed.Useful? React with 👍 / 👎.