Commit graph

16 commits

Author SHA1 Message Date
Arvin Xu
13fe968480
feat: claude code intergration polish (#13942)
* 🐛 fix(cc-resume): guard resume against cwd mismatch (LOBE-7336)

Claude Code CLI stores sessions per-cwd under `~/.claude/projects/<encoded-cwd>/`,
so resuming a session from a different working directory fails with
"No conversation found with session ID". Persist the cwd alongside the session
id on each turn and skip `--resume` when the current cwd can't be verified
against the stored one, falling back to a fresh session plus a toast explaining
the reset.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

*  feat(cc-desktop): Claude Code desktop polish + completion notifications

Bundles the follow-on UX improvements for Claude Code on desktop:

- Completion notifications: CC / Codex / ACP runs now fire a desktop
  notification (when the window is hidden) plus dock badge when the turn
  finishes, matching the Gateway client-mode behavior.
- Inspector + renders: add Skill and TodoWrite inspectors, wire them
  through Render/index + renders registry, expose shared displayControls.
- Adapter: extend claude-code adapter with additional event coverage and
  regression tests.
- Sidebar / home menu: clean up Topic list item and dropdown menu, rename
  "Claude Code Agent" entry point to "Add Claude Code" across EN/ZH.
- Assorted: NotificationCtr, Browser, WorkflowCollapse, ServerMode upload,
  agent/tool selectors — small follow-ups surfaced while building the
  above.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

*  test(browser): mock electron.app for badge-clear on focus

Browser.focus handler now calls app.setBadgeCount / app.dock.setBadge to
clear the completion badge when the user returns. Tests imported the
Browser module without exposing app on the electron mock, causing a
module-load failure.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

*  feat(cc-topic): folder chip + unify cwd into workingDirectory (#13949)

 feat(cc-topic): show bound folder chip and unify cwd into workingDirectory

Replace the separate `ccSessionCwd` metadata field with the existing
`workingDirectory` so a CC topic's bound cwd has one source of truth:
persisted on first CC execution, read back by resume validation, and
surfaced in a clickable folder chip next to the topic title on desktop.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 13:42:00 +08:00
Innei
96627b9bb8 chore: fix lint 2026-02-11 13:05:56 +08:00
Innei
fcdaf9d814 🔧 chore: update eslint v2 configuration and suppressions (#12133)
* v2 init

* chore: update eslint suppressions and package dependencies

- Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration.
- Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes.
- Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency.

Signed-off-by: Innei <tukon479@gmail.com>

* fix: clean up import statements and formatting

- Removed unnecessary whitespace in replaceComponentImports.ts for improved readability.
- Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: update eslint suppressions and clean up code formatting

* 🐛 fix: use vi.hoisted for mock variable initialization

Fix TDZ error in persona service test by using vi.hoisted() to ensure
mock variables are available when vi.mock factory runs.

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-02-11 13:04:48 +08:00
Innei
76fd478752
🐛 fix(upload): resolve file upload button unresponsive issue (#11588)
* 🐛 fix(upload): resolve file upload button unresponsive issue

The file upload dropdown menu was not properly handling the interaction
between the dropdown and the Upload component, causing the menu to block
file selection events.

Changes:
- Add controlled open state for upload dropdown
- Mark upload menu items with closeOnClick: false to prevent premature closing
- Manually close dropdown after file selection completes
- Enhance ActionDropdown to support interactive elements with proper event handling
- Add scheduleClose functionality for delayed menu closing

Closes LOBE-3503

* 🔧 chore: update package dependencies and enhance VSCode settings

- Bump version of @lobehub/ui to ^4.22.0 in package.json.
- Update VSCode settings to exclude additional locale directories from search, improving performance and relevance.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-01-18 23:36:15 +08:00
Innei
9c9d4b17a9
♻️ refactor(ui): migrate from Dropdown to DropdownMenu/ContextMenuTrigger components (#11539)
*  feat(mcp): improve system dependency checks and error handling

- Refactored checkSystemDependency method to streamline command execution and error handling.
- Removed unnecessary npx command for package version checks, simplifying the installation verification process.
- Enhanced error handling in InstallError component for better user feedback during MCP installation failures.
- Updated UpdaterManager to prevent auto-update checks in development mode.

Signed-off-by: Innei <tukon479@gmail.com>

*  feat: update ChatWithModel component to use DropdownMenu

- Replaced the Dropdown component with DropdownMenu for better integration with UI library.
- Added type definitions for DropdownMenuProps to support new properties.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-01-17 00:41:39 +08:00
Innei
f46837a031
🔧 refactor: improve Tools popover component structure and fix UI consistency (#11356)
*  feat: add nativeButton prop to various components for improved UI consistency

- Updated SwitchPanel, HeaderActions, ActionPopover, and ModelSwitchPanel to include nativeButton={false} for better button behavior.
- Introduced ToolsList component to enhance the tools dropdown functionality in the ActionBar.
- Refactored Tools component to utilize the new ToolsList and streamline the rendering of tool items.

Signed-off-by: Innei <tukon479@gmail.com>

* 🔧 refactor: correct CheckboxItem import and enhance Tools component structure

- Fixed import path for CheckboxItem in multiple files to ensure consistent naming.
- Introduced PopoverContent component to streamline the rendering of tool items in the Tools component.
- Refactored Tools component to utilize PopoverContent for improved organization and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>

*  feat: enhance PopoverContent and ToolsList components for improved UI

- Introduced static styles for header and footer in PopoverContent to enhance layout consistency.
- Updated ToolsList to include itemIcon styling for better alignment and presentation of icons.
- Modified ToolItem to remove padding for a cleaner appearance.
- Added hasPadding prop to CheckboxItem for flexible padding control.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-01-09 13:20:49 +08:00
canisminor1990
7367093191 style: update actions bar 2025-12-30 18:21:10 +08:00
Innei
e87bee6dd5
chore: update lint to use type imports (#10970)
* chore: update lint to use type imports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* revert

* chore: add workspaces and overrides to package.json

* refactor: clean up imports in lobe-web-browsing executor

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-25 22:28:19 +08:00
arvinxx
685a6cd5a5 feat: server implement 2025-12-24 12:54:41 +08:00
Arvin Xu
f02d43b8d3
feat: support google video understanding (#8761)
* refactor

improve upload

fix tests

clean client mode

add video

support google image understand

* update

* fix tests
2025-09-21 21:37:06 +08:00
CanisMinor
436a7351eb
💄 style: Update mobile style and fix issues problem (#7636)
* 💄 style: Update mobile actionbar and fix agent setting

* 🐛 fix: Fix share

* 🔧 chore: Update i18n

* 🐛 fix: Fix review problem

* 💄 style: Update mobile actionbar

* 💄 style: Fix processing tag

* 🔧 chore: Update depes
2025-04-30 16:43:07 +08:00
CanisMinor
6913f70633
feat: upgrade to lobe ui v2 with better design style (#7238)
* ♻️ refactor: migrate to @lobehub/ui v2

* 🐛 fix: Fix form

* 💄 style: Update style

* 💄 style: Update form style

*  test: Fix test

* 💄 style: Update actionbar style

* upgrade

* 💄 style: Update discover style

* 💄 style: Update ui

* 💄 style: Update darkmod

* 💄 style: Update style

* 🐛 fix: Fix review problem

* 💄 style: Fix mobile style

* 💄 style: Update modal style

* 💄 style: Update form

* 🔧 chore: Update i18n

* 💄 style: Fix preview style problem

* 🔧 chore: Update pkg
2025-04-28 16:29:41 +08:00
Arvin Xu
b7edbd319c
🐛 fix: fix some providers issues (#5429)
* Update package.json

* Update package.json

* fix null issue

* update locale

* fix model ability display

* update locale
2025-01-14 22:18:26 +08:00
Arvin Xu
bde6d64fa4
feat: brand new AI provider (#5158)
*  feat: 完成 ai provider 部分的新增、menu 列表、卡片列表与开启关闭,支持 model 开关,并优化列表展示,支持 model 拉取。完成 ai models 新增和修改逻辑、排序完整实现,优化开关体验,完成 chat model select 实现。完成 provider 的配置修改与删除开发

update config

fix

add sdk type

fix toggle search issue

improve enable

优化模型开关操作体验

feat: 完成 chat model select 部分实现

fix auth

兼容 client db 废弃模式

fix test

完成 provider 的配置修改与删除开发

clean

* 修正未登录态的数据

* fix db sql

* fix lint

* update

* improve loading

* improve model list empty state
2025-01-08 00:26:55 +08:00
Rubu Jam
7c08f29cf9
💄 style(ui): improve UI layout and text (#3762)
* 💄 style(ui): Adjust text layout of `loading page`

* 💄 style(ui): Adjust text layout for `404 page`

* 💄 style(ui): Adjust size of icons

* 💄 style(ui): Adjust word spacing in `waiting`

* 💄 style(ui): Adjust icon size of `Delete File` and `Delete Picture`

* 💄 style(ui): Adjust texts in `knowledge base`

* 🔧 chore: Update `i18n`

* 🔧 chore(deps): update Dependencies
2024-09-11 15:34:16 +08:00
Arvin Xu
6574c01843
feat: files and knowledge base (#3487)
*  feat: add files and knowledge base

Update edge.ts

Update test.yml

🎨 chore: fix locale

Update index.tsx

测试 pgvector workflow

* 💄 style: improve upload detail

*  feat: support delete s3 file when delete files

* 💄 style: improve chunks in message

* ♻️ refactor: refactor the auth method

*  feat: support use user client api key

* 💄 style: fix image list in mobile

*  feat: support file upload on mobile

*  test: fix test

* fix vercel build

* docs: update docs

* 👷 build: improve docker

* update i18n
2024-08-21 21:28:29 +08:00