Faisal Amir
dfe15fac32
enhancement: built-in custom emoji and show metadata message ( #5085 )
...
* enhancement: built-in custom emoji and show metadata message
* chore: seperate render avatar as component
* fix: avatar on assistant screen
2025-05-23 15:37:47 +07:00
Faisal Amir
fce559a8fa
fix: mcp info when long string without space ( #5080 )
2025-05-23 11:12:20 +07:00
Sam Hoang Van
7df7d8ffa0
feat: Implement Cortex server auto-restart and webview notification ( #5074 )
...
* feat: Implement Cortex server auto-restart and webview notification
Implements a robust auto-restart mechanism for the Cortex server (sidecar)
managed by the Tauri backend.
Key changes:
Backend (src-tauri):
- Modified `core/setup.rs` to:
- Loop sidecar spawning, attempting up to `MAX_RESTARTS` (5) times with a
`RESTART_DELAY_MS` (5 seconds) between attempts.
- Monitor the sidecar process for unexpected termination (crashes or
non-zero exit codes).
- Reset the restart attempt count to 0 in `AppState` upon a successful
server spawn.
- Emit a "cortex_max_restarts_reached" event to the webview if the
server fails to start after `MAX_RESTARTS`.
- Updated `core/state.rs` to include `cortex_restart_count: Arc<Mutex<u32>>`
in `AppState` to track restart attempts.
- Added a new Tauri command `reset_cortex_restart_count` in `core/cmd.rs`
to allow the webview (or other parts of the app) to reset this counter.
- Registered the new command and initialized the `cortex_restart_count`
in `lib.rs`.
Frontend (web-app):
- Created a new component `CortexFailureDialog.tsx` in
`src/containers/dialogs/` to:
- Listen for the "cortex_max_restarts_reached" event from Tauri.
- Display a dialog informing the user that the local AI engine (Cortex)
failed to start after multiple attempts.
- Offer options to "Contact Support" (opens jan.ai/support),
"Restart Jan" (invokes the `relaunch` Tauri command), or "Okay"
(dismisses the dialog).
- Integrated the `CortexFailureDialog` into the `RootLayout` in
`src/routes/__root.tsx` so it's globally available.
- Corrected button variants in `__root.tsx` to use `variant="default"`
with appropriate classNames for outline styling, resolving TypeScript
errors.
* refactor: Improve async handling and logging in setup_sidecar function
2025-05-22 23:09:43 +07:00
Louis
942f2f51b7
chore: send chat completion with messages history ( #5070 )
...
* chore: send chat completion with messages history
* chore: handle abort controllers
* chore: change max attempts setting
* chore: handle stop running models in system monitor screen
* Update web-app/src/services/models.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* chore: format time
* chore: handle stop model load action
---------
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-05-22 20:13:50 +07:00
Louis
570bb8290f
chore: add model information in System Monitoring ( #5062 )
...
* chore: add model information in System Monitoring
* chore: handle empty models case
* chore: fix type
2025-05-22 16:07:08 +07:00
Louis
4d66eaf0a7
chore: handle local models chat with MCP ( #5065 )
...
* chore: handle local models chat with MCP
* chore: update MCP server connection status in the settings page
* chore: error handling
* chore: normalize message
* chore: update finally block
2025-05-22 16:06:55 +07:00
Faisal Amir
12ad61aaa8
enhancement: show assistant info on message ( #5064 )
2025-05-22 14:45:58 +07:00
Faisal Amir
434abaaca6
chore: app updater UI ( #5054 )
...
* chore: initial app updater UI and download management enhance
* chore: revert package version
* chore: update conditional app updater
* chore: remove console
* chore: add utils isDev
* chore: close popup when user click download
* revert yarn lock
2025-05-22 11:54:06 +07:00
Faisal Amir
a7d2e72313
enhancement: disabled config when server is running ( #5058 )
2025-05-22 11:07:14 +07:00
Faisal Amir
fab8f0a9c9
Merge pull request #5059 from menloresearch/enhancement/hub-left-panel-collapse
...
enhancement: update layout hub when left panel collapse
2025-05-22 11:04:21 +07:00
Faisal Amir
bd0d2a5cec
Merge pull request #5057 from menloresearch/feat/assistant-emoji
...
feat: add assistant emoji picker
2025-05-22 10:56:01 +07:00
Faisal Amir
6a6ccc9a9e
Merge pull request #5055 from menloresearch/enhancement/message-toolbar
...
enhancement: message toolbar using tooltip
2025-05-22 10:55:28 +07:00
Faisal Amir
0622106f8e
chore: update routes log
2025-05-22 00:51:30 +07:00
Faisal Amir
0c73035b3c
feat: initial app logs
2025-05-22 00:46:28 +07:00
Faisal Amir
661e907784
enhancement: update layout hub when left panel collapse
2025-05-22 00:14:16 +07:00
Faisal Amir
974f7901e6
feat: add assistant emoji picker
2025-05-21 23:45:49 +07:00
Faisal Amir
2e5795945b
chore: fix slice default model
2025-05-21 22:38:19 +07:00
Louis
0627f29059
chore: enable / disable proxy configrations ( #5050 )
...
* chore: enable / disable proxy configrations
* Update web-app/src/routes/settings/https-proxy.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update web-app/src/lib/completion.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-05-21 14:18:25 +07:00
Faisal Amir
a7e4037449
Merge pull request #5049 from menloresearch/chore/system-monitor
...
chore: intial new window system monitor
2025-05-21 13:30:37 +07:00
Faisal Amir
afab839733
chore: seperate function onclick
2025-05-21 12:47:06 +07:00
Faisal Amir
2812a8978a
chore: intial new window system monitor
2025-05-21 12:27:54 +07:00
Louis
6676e0ced8
chore: add relocate jan data folder function to new FE ( #5043 )
...
* chore: typo
* fix: linter issues
* chore: fix linter
* chore: fix linter
* chore: add relocate data folder
2025-05-21 10:48:10 +07:00
Louis
81c4dc516b
chore: handle hardware settings ( #5041 )
...
* chore: handle hardware settings
* chore: activate GPUs
* Update web-app/src/services/hardware.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-20 20:05:47 +07:00
Faisal Amir
c54e8c80b6
chore: model import from llama.cpp provider
2025-05-20 15:48:45 +07:00
Faisal Amir
c4d32c72d1
Merge pull request #5035 from menloresearch/chore/data-folder
...
chore: show location data folder and ui for let user change folder
2025-05-20 14:42:21 +07:00
Louis
d5393e4563
feat: add custom OpenAI provider ( #5033 )
...
* feat: add custom OpenAI provider
* chore: add HF token setting
* chore: move HF token setting to llama.cpp provider - later deprecate model extension
2025-05-20 14:30:51 +07:00
Faisal Amir
4adaeed3da
chore: show location data folder and prepare ui for let user change folder
2025-05-20 14:10:49 +07:00
Faisal Amir
76827d42f5
Merge pull request #5032 from menloresearch/chore/model-loading
...
chore: model loading and truncate dropdown assiatant title
2025-05-20 12:44:51 +07:00
Faisal Amir
d95439e3f4
chore: update copy
2025-05-20 12:21:30 +07:00
Faisal Amir
97728734a7
chore: model loading and truncate dropdown assiatant title
2025-05-20 11:29:18 +07:00
Faisal Amir
4c50ebfe0a
chore: add setting hardware
2025-05-20 10:43:36 +07:00
Louis
b3a6edb704
chore: reduce state update to prevent glitchy scroll to bottom ( #5026 )
2025-05-20 09:47:40 +07:00
Louis
9047d0df4f
chore: remove unnecessary imports
2025-05-20 09:42:34 +07:00
Faisal Amir
cbad4396cd
Merge pull request #5021 from menloresearch/chore/scroll-bottom-log
...
chore: scroll to bottom when have new log message
2025-05-20 09:33:12 +07:00
Faisal Amir
7d25bcb168
Merge pull request #5022 from menloresearch/chore/appearance-group
...
chore: regroup codeblock setting appearance
2025-05-20 09:33:04 +07:00
Louis
2dac53e9ca
feat: Jan supports multiple assistants ( #5024 )
...
* feat: Jan supports multiple assistants
* chore: persists current assistant to threads.json
* chore: update assistant persistence
* chore: simplify persistence objects
2025-05-20 00:57:26 +07:00
Louis
f6433544af
feat: handle stop streaming message, scroll to bottom and model loads ( #5023 )
2025-05-19 23:32:55 +07:00
Faisal Amir
0cc50531f8
chore: regroup codeblock setting appearance
2025-05-19 23:21:19 +07:00
Faisal Amir
fba7529281
chore: scroll to bottom when have new log message
2025-05-19 23:09:55 +07:00
Faisal Amir
b69a9ceb0f
Merge pull request #5020 from menloresearch/chore/cleanup-assistant
...
chore: add function delete and params type assistant
2025-05-19 22:53:45 +07:00
Louis
28c7e0d105
chore: stream app logs to log window ( #5019 )
...
* chore: stream app logs to log window
* chore: remove unused states
2025-05-19 22:51:37 +07:00
Faisal Amir
afb8ff716a
chore: add functiond delete and params type assistant
2025-05-19 22:47:57 +07:00
Louis
2ae7417e10
feat: add MCP server connection status ( #5018 )
2025-05-19 15:17:19 +07:00
Louis
2bc8fccaf0
chore: allow users to enable/disable MCP servers ( #5015 )
2025-05-19 13:15:37 +07:00
Faisal Amir
1c81e5a95e
chore: remove lock
2025-05-19 13:00:28 +07:00
Faisal Amir
1435cd3162
chore: add functional use button when download complete
2025-05-19 12:35:18 +07:00
Faisal Amir
53f5729674
chore: update hub progress download, added toaster
2025-05-19 11:17:16 +07:00
Louis
2345ff172d
chore: update model handlers on the new frontend ( #5011 )
...
* chore: provide model handlers to new frontend
* chore: add API server function to the new front end
2025-05-19 10:39:43 +07:00
Louis
c1091ce812
feat: new frontend with model download function ( #5008 )
2025-05-18 20:00:17 +07:00
Faisal Amir
bc327c40d4
chore: update empty state thread list, search, and no model
2025-05-18 14:58:15 +07:00