Commit Graph

10 Commits

Author SHA1 Message Date
ekko 2f018b39ae fix chat input frame height setting (#1962) 2026-07-06 11:56:51 +08:00
牧濑红莉栖(BOT) 0dc16d5642 fix(chat): 为代码代理会话显示推理和上下文设置 (#1938)
* fix(chat): 为代码代理会话显示推理和上下文设置

* docs(chat-chain): 记录代码代理推理上下文设置

* test(chat): 更新代码代理推理上下文断言

* fix(chat): 刷新代码代理上下文用量

---------

Co-authored-by: x1051445024 <你的GitHub注册邮箱>
2026-07-05 14:09:50 +08:00
ekko 5b3e7a0a8f [codex] refresh chat input toolbar (#1883)
* refresh chat input toolbar

* fix chat input ci checks

* tune mobile chat input sizing

* compact mobile settings button

* swap model and settings toolbar buttons

* restore mobile settings chevron

* compact mobile model button

* avoid mobile voice overlay overlap

* strengthen voice overlay background

* raise mobile voice overlay layer
2026-07-01 17:29:27 +08:00
Zhicheng Han 7da611cf75 fix: add configurable chat input height (#1859) 2026-06-30 19:42:09 +08:00
Zhicheng Han 449e99bea3 fix: 透传未知斜杠命令输入 (#1607)
* Refs #1380: pass through unknown slash commands

* docs: add chat chain fragment for issue #1380

* Harden slash command passthrough
2026-06-17 08:28:14 +08:00
ekko 16e6e9019b add skill command picker (#1530) 2026-06-13 13:07:25 +08:00
ekko 1196598106 hide reasoning effort for coding agents (#1425) 2026-06-09 10:01:22 +08:00
paulocavallari e6c23abe69 feat(chat): add per-session reasoning effort selector (#1417)
* feat(chat): add per-session reasoning effort selector

Adds a brain icon dropdown next to the paperclip in the chat input
toolbar that lets the user override agent.reasoning_effort per session
without editing config.yaml. Levels: none, minimal, low, medium, high,
xhigh. Empty selection falls back to the config default.

The override is forwarded end-to-end:
StartRunRequest.reasoning_effort -> Socket.IO 'run' event ->
handleBridgeRun -> AgentBridgeClient.chat options ->
hermes_bridge.py 'chat' action -> start_chat -> _run_chat ->
session.agent.reasoning_config (mutated in place around
run_conversation, restored in a try/finally).

Per-run by construction:
- Mutating reasoning_config inside try/finally keeps the AIAgent
  instance alive (preserves prompt cache and tool registrations) and
  restores the previous value after every turn, so the override never
  leaks across sessions or turns.
- The selection is persisted in localStorage keyed by sessionId so it
  survives reloads, and is rehydrated onto Session objects via a Pinia
  watcher when the session list is refreshed from the server.

i18n: chat.reasoningEffort.{tooltip,defaultLabel,options.*} added to
all 10 locales (de, en, es, fr, ja, ko, pt, ru, zh, zh-TW).

Tests:
- tests/client/chat-store-reasoning-effort.test.ts (5 cases) covers
  setSessionReasoningEffort persistence, clearing, multi-session
  independence, missing-session no-op, and localStorage rehydration.
- tests/server/agent-bridge-reasoning-effort.test.ts (3 cases) covers
  AgentBridgeClient.chat forwarding when set, omission when unset, and
  omission when the empty string is passed.
- tests/client/chat-input-draft.test.ts updated to stub NPopselect.

Docs: docs/chat-chain-changes/2026-06-08-reasoning-effort-per-session.md
documents the chain change as required by harness:check.

* test: add NPopselect stub to voice-dialogue-controls naive-ui mock

The test file mocks naive-ui and stubs only the components that
ChatInput.vue used before this branch. The new brain icon dropdown
imports NPopselect, so the existing mock needs to expose a stub for it
or vitest throws 'No NPopselect export is defined on the naive-ui mock'
when ChatInput renders during the suite.

Mirrors the same one-line addition already applied to
chat-input-draft.test.ts in the previous commit.
2026-06-09 09:12:13 +08:00
ekko c52e2c25df [codex] add coding agent chat sessions (#1410)
* feat: add coding agent chat runner

* fix claude coding agent model identity

* Revert "fix claude coding agent model identity"

This reverts commit eff87d6e28.

* align claude coding agent settings with main

* remove claude bare mode from coding agent runner

* fix coding agent chat sessions
2026-06-08 15:35:52 +08:00
Qiang Han 48c35c20e8 fix(chat): preserve unsent input draft (#1173)
* fix(chat): preserve unsent input draft

* fix(chat): store drafts by session id
2026-05-31 20:06:18 +08:00