feat: Add message history navigation with arrow keys - #30
Merged
Conversation
|
This fixes #42 |
randomm
referenced
this pull request
in randomm/opencode
Jan 9, 2026
…operations (#30) - Replace broad text searches with filtered queries (--owner, --state, --project) - Add 'Performance & Context Efficiency' section with clear patterns: - Context-efficient patterns: direct lookups, workspaces, filtered searches - Context-consuming anti-patterns to avoid (broad text search, unfiltered listings) - Complete search operator reference (-o, -s, -p, -t, -y, -l, -i) - Emphasize workspace pattern as PRIMARY for repeated queries - Update epic/project listing examples to use filtering - Add visual hierarchy to query optimization (🏆 ✅⚠️ ❌) - Expand from 414 to 532 lines with practical guidance Aligns with official Shortcut CLI documentation and prevents operations that would dump large result sets into AI context windows.
xywsxp
pushed a commit
to xywsxp/opencode
that referenced
this pull request
Apr 24, 2026
avion23
pushed a commit
to avion23/opencode
that referenced
this pull request
Jun 10, 2026
danzeroum
referenced
this pull request
in danzeroum/opencode
Jun 16, 2026
PR #30 (Phase 3 expansion): port openai-chat over the same Protocol/transport/ executor scaffolding, proving the abstraction generalizes beyond Anthropic. - opencode-llm::openai_chat: request lowering to the Chat Completions body (system as a role:"system" message, string content, {type:function,function: {name,description,parameters}} tools, tool_choice modes auto/none/required/ named, stream_options.include_usage) + SSE decode of chat.completion.chunks (content deltas, tool_calls[].function.arguments streamed by index, usage from prompt/completion_tokens + cached_tokens). - Protocol trait gains a defaulted on_halt flush: OpenAI splits finish_reason and usage across the last chunks and has no terminal event ([DONE]), so the text/ tool block ends + terminal Finish are emitted in on_halt. Anthropic (emits inline) is unaffected by the default. - Parity proven against the openai-chat cassettes (request bodies + response streams): text → "Hello!" (usage 22/2); tool-call → get_weather({"city": "Paris"}) (usage 67/5); plus assistant tool_call + tool result lowering. No new external crates. Verified: build/clippy -D warnings/fmt/test (llm 27) + openapi-diff + `cargo deny check` all green. https://claude.ai/code/session_017Lo2jkGdTgRvsPG6tcwEqz
zoulukuang
added a commit
to zoulukuang/deskfox
that referenced
this pull request
Aug 14, 2026
- anomalyco#34 复制:`clipboard.writeText` **依赖 document 有焦点**,焦点被抢时静默失败 —— 表现为偶发「点了复制但剪贴板没变」。加 `Page.bringToFront` + 失败重试一次。 (此前两条弯路都记在注释里:clipboard API 读不了、CDP 合成 ⌘V 触发不了粘贴。) - anomalyco#37 步骤展开/收起:会话变长后步骤被虚拟列表回收,视口内一个都没有 —— 这是**前提没准备好**,不是没有步骤。改为先跳到最新;仍没有就现跑一条 shell 命令造一个。 直接记 SKIP 等于会话一长这条就永远验不到。 - anomalyco#30 撤销/重做:撤销是异步的,改为等消息数真的变而不是固定 sleep(读早了必然误判)。 第 3 组现状:通过 15,跳过 1(分享 —— 需 user 逐次授权,已在授权下单独验过: 生成链接 → 取消分享 → curl 实测失效)。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wut6R6htBzR8fBN8gbJkWg
zoulukuang
added a commit
to zoulukuang/deskfox
that referenced
this pull request
Aug 14, 2026
人工验收单第二节列的 8 条「本可自动化但未覆盖」全部补成脚本,现状: 第 2 组 7/7、第 3 组 16 通过 2 跳过、第 4 组 11/11、第 5~7 组 11 通过 2 跳过,**待处理 0**。 剩下的跳过项都是真的做不了(分享需逐次授权;飞书绑定/群消息需真实外部账号)。 ## 新覆盖的条目 - **anomalyco#16 面板开关矩阵**:树/审查/终端 **8 种组合全跑**,每种都验不遮挡不溢出。 价值最高的一条 —— `flex-row-reverse` 当初复发正是因为只测了「文件树+聊天」一种组合。 - **anomalyco#22 终端**:开/新建/关,判据是终端实例数真的变。 - **anomalyco#26 聊天引用**:选中 → 右键 → 添加到聊天窗口 → **再点浮层里的「加入聊天」** → 卡片入输入区 → 点卡片不开空白预览页。 - **anomalyco#27 md 内链拦截**:内链跳转在应用内完成,且**没有浏览器被拉起**。 - **anomalyco#59 主题**:真切一次 Fox Blue —— `data-theme` onedarkpro → fox-blue, `--surface-base-active` `#e2e4e7` → **`#7295c452`**(正是清单要求的值),验完切回。 - **anomalyco#62 MCP**:真执行 ⌘; 开关一次并复位。 - **anomalyco#63**:如实报「只有一个本地服务器,无从切换」;workspace 切换由 anomalyco#19/anomalyco#18 覆盖。 - **anomalyco#55 飞书页**:开关翻转 + **落盘复核** + 复位。 ## 被实测推翻的「想当然」(这一批) - **审查不是独立面板,是中栏的一个 tab**(`[data-component="session-review"]` 从不出现)。 按名字猜选择器,anomalyco#16 里这一档永远开不起来,矩阵只能跑 4/8。 - **终端判据不能带 `canvas`**:PDF/xlsx 预览也是 canvas,导致「没开终端」也被判成开着。 - **标签条会横向溢出**:被挤出可见区的 tab **仍能报出几何坐标**,照着点会落到别处 —— 实撞点在会话标题上、**误触发了内联重命名**。坐标取得到 ≠ 那个位置真属于它。 故 `open_readme` 一律走文件树节点。 - **「添加到聊天窗口」只是第一步**,它先弹提问浮层,要再点「加入聊天」才真入聊天。 停在第一步找不到卡片,曾被记成「引用功能没生效」。 - **`data-theme` 是主题 id,命令面板显示的是主题名**(`onedarkpro` vs「One Dark Pro」)。 拿 id 去搜命令必然搜不到 —— 复位连续失败,**界面被留在 Fox Blue 两次**。 改为从主题定义文件读 id→名 映射,并轮询等主题真的生效。 - **搜索词与匹配词必须一致**:搜「使用主题:X」却取首个候选,点中的未必是 X。 - **持久化判据要具体到键+值**:第一版猜关键词 `caffeinate`,而真实键是 `preventSleepConfig`(store-keys.ts),「落盘可见」恒为 False —— 等于这条根本没验到, 只是没报错而已。 - **anomalyco#27 别拿「前台应用是谁」当判据**:探针自己的 osascript 就会打乱前台(实撞拿到 'Finder')。 改看有没有浏览器进程被拉起。 - **anomalyco#30 撤销要有东西可撤**:会话状态随前面条目漂移,多次 13→13→13 不是撤销坏了, 是没有可撤销的东西。改为先用 shell 造一条再验。 所有改全局状态的条目(主题 / 语言 / 权限自动接受 / 防休眠 / MCP)跑完都复位并复核。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wut6R6htBzR8fBN8gbJkWg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with opencode