ข้ามไปยังเนื้อหา

Terminal

UI เทอร์มินัลที่รวดเร็ว ใช้ได้ในทุกเชลล์ อีดิเตอร์ หรือเซิร์ฟเวอร์ระยะไกล บอกสิ่งที่ต้องการด้วยภาษาธรรมดา ดูการแก้ไขแต่ละครั้งปรากฏเป็น diff และเลือกว่าคำสั่งใดรันได้เอง

ฟีเจอร์

ถามด้วยภาษาธรรมดา

พิมพ์สิ่งที่ต้องการ แล้วเอเจนต์จะแสดงแผนขณะทำงาน

อนุมัติสิ่งที่รัน

การแก้ไขแสดงเป็น diff และคำสั่งจะรอสิทธิ์จากคุณ

ปรับให้เป็นของคุณ

สลับธีมได้ในการกดแป้นเดียว ตั้งแต่ธีมเริ่มต้นไปจนถึง tokyonight และอื่นๆ

Mini

รัน opencode mini แล้วคำตอบจะพิมพ์ลงใน scrollback ของคุณเอง

  • ทุกเทอร์มินัลใช้ได้ในทุกเชลล์ ในเทอร์มินัลของอีดิเตอร์ หรือบนเซิร์ฟเวอร์ระยะไกล
  • diff ในไทม์ไลน์ดูการแก้ไขแต่ละครั้งเป็น diff ในไทม์ไลน์ ขณะที่เอเจนต์แก้ไข
  • ทำต่อภายหลังทำเซสชันล่าสุดต่อด้วย -c หรือเซสชันใดก็ได้ด้วย -s
  • รันครั้งเดียวopencode run ส่งข้อความหนึ่งข้อความและพิมพ์คำตอบ
  • เอเจนต์และคำสั่งสลับเอเจนต์ด้วย shift+tab และเปิดทุกคำสั่งด้วย ctrl+p
  • อนุมัติอัตโนมัติรันด้วย --auto เพื่ออนุญาตทุกการกระทำที่คุณไม่ได้ปฏิเสธ
  • เซิร์ฟเวอร์ใดก็ได้เชื่อมต่อกับเซิร์ฟเวอร์ OpenCode ด้วย URL ผ่าน --server
  • สถิติการใช้งานopencode stats แสดงสถิติการใช้งานที่แชร์ได้

  • curlcurl -fsSL https://opencode.ai/v2/install | bash
  • npmnpm install -g @opencode/cli
  • bunbun install -g --trust @opencode/cli
  • brewbrew install anomalyco/tap/opencode-v2
  • paruparu -S opencode-beta

บันทึกการเปลี่ยนแปลง

  1. v2.2.5

    The connect menu no longer lists MCP servers

    The connect menu no longer lists MCP servers, which are managed in their own place.#60675

  2. v2.2.4

    Preserved prompt cursor styles applied by plugins when themes or unrelated prompt state change

    การแก้ไข

    • TerminalAdded missing right padding to edit and patch diffs.#60614
    • TerminalExtended the vertical session-tab activity pulse across the full tab width.#60338
  3. v2.2.3

    Added lazy loading for stored image references when experimental.media_blob is enabled

    Added lazy loading for stored image references when experimental.media_blob is enabled. Images are downloaded only for previews, while undo, revert, fork, and prompt recall restore referenced attachments safely.#60116

    การเปลี่ยนแปลงที่ไม่เข้ากัน

    TUI plugins require OpenTUI 0.8

    @opencode/plugin now requires @opentui/core and @opentui/solid 0.8.0 or later. In OpenTUI 0.8, a ScrollBox's wrapper, viewport, content, and scrollbars are facade objects instead of renderables, and a custom RenderContext must implement clock and onAnimationTick. See the OpenTUI 0.8.0 release notes.

    #60385

    การปรับปรุง

    • TerminalAdded a distinct marker for the selected composer suggestion in the new designs.#60393

    การแก้ไข

    • TerminalFixed PHP syntax highlighting for code blocks without an opening <?php tag.#60359
    • TerminalPreserved # in file-search paths unless it introduces a valid line range.#60336
    • TerminalKept the configured default cursor style after config reloads.#60302
    • TerminalMatched the search cursor to the highlighted row when a selection dialog has no query.#60310
ดูอัปเดตทั้งหมด