-
-
Notifications
You must be signed in to change notification settings - Fork 34
feat(memory): show taOSmd running mode, reachability, tier + switch-to-remote control #1959
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
base: dev
Are you sure you want to change the base?
Changes from all commits
f33f7fa
dd6968f
c22f774
caf829d
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 |
|---|---|---|
|
|
@@ -26,6 +26,13 @@ export interface BackendCapabilities { | |
| capabilities: string[]; | ||
| } | ||
|
|
||
| export interface TaOSmdEndpoint { | ||
| url: string; | ||
| is_local: boolean; | ||
| reachable: boolean; | ||
| tier?: string; | ||
| } | ||
|
|
||
| export interface CatalogSession { | ||
| id: number; | ||
| date: string; | ||
|
|
@@ -40,7 +47,7 @@ export interface CatalogSession { | |
| } | ||
|
|
||
| /* ------------------------------------------------------------------ */ | ||
| /* Stats / capabilities */ | ||
| /* Stats / capabilities / endpoint */ | ||
| /* ------------------------------------------------------------------ */ | ||
|
|
||
| export async function fetchMemoryStats(): Promise<Record<string, any>> { | ||
|
|
@@ -67,6 +74,22 @@ export async function updateMemorySettings(settings: Record<string, any>): Promi | |
| }); | ||
| } | ||
|
|
||
| export async function fetchMemoryEndpoint(): Promise<TaOSmdEndpoint> { | ||
| const result = await fetchJson<TaOSmdEndpoint>( | ||
| `${API}/settings/memory-url`, | ||
| { url: "", is_local: true, reachable: false }, | ||
| ); | ||
| return result; | ||
| } | ||
|
|
||
| export async function updateMemoryEndpoint(url: string): Promise<TaOSmdEndpoint> { | ||
| return fetchJson<TaOSmdEndpoint>(`${API}/settings/memory-url`, { url, is_local: true, reachable: false }, { | ||
| method: "PUT", | ||
| headers: { "Content-Type": "application/json" }, | ||
| body: JSON.stringify({ url }), | ||
| }); | ||
|
Comment on lines
+77
to
+90
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. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Do not fabricate endpoint state when requests fail.
🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
| /* ------------------------------------------------------------------ */ | ||
| /* Catalog */ | ||
| /* ------------------------------------------------------------------ */ | ||
|
|
||
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.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Use semantic theme colors throughout the new endpoint controls.
desktop/src/components/memory/MemorySettings.tsx#L94-L99: replace fixed mode/status palettes and apply the same correction to the card’s remaining new color classes.desktop/src/apps/SettingsApp.tsx#L421-L438: replace fixed input, focus, and error colors with theme tokens.📍 Affects 2 files
desktop/src/components/memory/MemorySettings.tsx#L94-L99(this comment)desktop/src/apps/SettingsApp.tsx#L421-L438🤖 Prompt for AI Agents