Visitar URL original
OpenCode | UI เทอร์มินัลของเอเจนต์เขียนโค้ดแบบโอเพนซอร์ส
ข้ามไปยังเนื้อหา

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.3.0

    Quieter Transcripts by Default

    The TUI now summarizes each run of tool calls and thoughts into one collapsible activity row, so the answer is easier to follow. To see every step again, set Verbosity to medium or high in settings, or set session.verbosity in your TUI config; an existing setting is kept.#63207

    ดูไฮไลต์ทั้งหมดใน v2.3.0

    การปรับปรุง

    • TerminalSession IDs found in messages can now be opened directly.
    • TerminalActivity tabs are clickable and open the correct view.
    • TerminalShell mode has its own prompt color under the new designs.

    การแก้ไข

    • TerminalRestored pasted text when undo brings back its placeholder.
    • TerminalRestored the live draft after browsing prompt history.
    • TerminalFixed copying a paste from within the prompt selection.
    • TerminalPreserved the Mini composer caret when closing the command palette.
    อีก 5 รายการ การแก้ไข
  2. v2.2.7

    The update and confirm dialogs have buttons you can move between with ←/→ and Tab/Shift+Tab

    ดูไฮไลต์ทั้งหมดใน v2.2.7

    การปรับปรุง

    • TerminalThe model picker no longer has a Usage action; use /usage instead.#62927

    การแก้ไข

    • TerminalSession exports are saved in the current working directory instead of the system temp folder.#62253
    • TerminalTyping a child session's exact ID in the open-session menu lists that session.#62262
    • TerminalThe TUI follows the terminal's current light or dark mode instead of a cached palette.#62248
  3. v2.2.6

    Added Scroll on send in Settings

    Added Scroll on send in Settings. Choose Keep (session.submit_scroll: "keep") to retain your reading position after submitting a prompt.#61460

    ดูไฮไลต์ทั้งหมดใน v2.2.6

    การแก้ไข

    • TerminalAllow Ctrl+Z to suspend OpenCode while a form or dialog is open.#62118
    • TerminalKeep focus on an open dialog when a question arrives and contain plugin dialogs that throw during rendering.#60365#62110
    • TerminalShow an error when Ctrl+V cannot read the clipboard. Thanks @jimmyallinai.#61094
    • TerminalPrevent session titles containing newlines from crashing the TUI. Thanks @vishalshekhar.#57523
    อีก 6 รายการ การแก้ไข
ดูอัปเดตทั้งหมด