[PR #1821] [MERGED] feat: add session rename functionality to TUI modal #10077

Closed
opened 2026-02-16 18:14:40 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1821
Author: @spoons-and-mirrors
Created: 8/11/2025
Status: Merged
Merged: 8/12/2025
Merged by: @thdxr

Base: devHead: feat/session-rename


📝 Commits (6)

  • bea1ace feat: add session rename functionality to TUI modal
  • 2630825 feat: update modal title to "Rename Session" during rename mode
  • 0adc16f fix: ESC key in rename mode returns to session list instead of closing modal
  • 9aa0700 ci: sync
  • a0b377b Merge branch 'dev' into feat/session-rename
  • f1995ca Merge branch 'dev' into feat/session-rename

📊 Changes

5 files changed (+231 additions, -41 deletions)

View changed files

📝 packages/opencode/src/server/server.ts (+41 -0)
📝 packages/sdk/go/session.go (+20 -0)
📝 packages/tui/internal/app/app.go (+11 -0)
📝 packages/tui/internal/components/dialog/session.go (+154 -41)
📝 packages/tui/internal/tui/tui.go (+5 -0)

📄 Description

Summary

Add session rename functionality to the TUI session modal, allowing users to rename sessions by
pressing the 'r' key.

  • New API endpoint: PATCH /session/:id for updating session properties
  • Enhanced session modal: Press 'r' to rename selected session with inline text input
  • Full SDK support: Added session update methods to both Go and JS/TS SDKs
  • Seamless UX: Enter to confirm, Esc to cancel, with success/error toast notifications
image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1821 **Author:** [@spoons-and-mirrors](https://github.com/spoons-and-mirrors) **Created:** 8/11/2025 **Status:** ✅ Merged **Merged:** 8/12/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `feat/session-rename` --- ### 📝 Commits (6) - [`bea1ace`](https://github.com/anomalyco/opencode/commit/bea1ace1e557d83e9b78404f5de340789dfc60fc) feat: add session rename functionality to TUI modal - [`2630825`](https://github.com/anomalyco/opencode/commit/2630825e5d1facafe596f0ae750fddc4e0b87862) feat: update modal title to "Rename Session" during rename mode - [`0adc16f`](https://github.com/anomalyco/opencode/commit/0adc16fd64272354b2f2faa5b2348ffe325d1ba0) fix: ESC key in rename mode returns to session list instead of closing modal - [`9aa0700`](https://github.com/anomalyco/opencode/commit/9aa0700dc42bf1c8040a6ca5edc6b4f294e6070c) ci: sync - [`a0b377b`](https://github.com/anomalyco/opencode/commit/a0b377b21ddb3cf7f99da250754f987a48824e96) Merge branch 'dev' into feat/session-rename - [`f1995ca`](https://github.com/anomalyco/opencode/commit/f1995cab7ab6354277fcae552851ce8de0634665) Merge branch 'dev' into feat/session-rename ### 📊 Changes **5 files changed** (+231 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/server/server.ts` (+41 -0) 📝 `packages/sdk/go/session.go` (+20 -0) 📝 `packages/tui/internal/app/app.go` (+11 -0) 📝 `packages/tui/internal/components/dialog/session.go` (+154 -41) 📝 `packages/tui/internal/tui/tui.go` (+5 -0) </details> ### 📄 Description ## Summary Add session rename functionality to the TUI session modal, allowing users to rename sessions by pressing the 'r' key. - New API endpoint: PATCH /session/:id for updating session properties - Enhanced session modal: Press 'r' to rename selected session with inline text input - Full SDK support: Added session update methods to both Go and JS/TS SDKs - Seamless UX: Enter to confirm, Esc to cancel, with success/error toast notifications <img width="655" height="78" alt="image" src="https://github.com/user-attachments/assets/af31e7b0-1624-4e5f-9641-23de2b928af2" /> <img width="648" height="129" alt="image" src="https://github.com/user-attachments/assets/4ea2c9ce-8573-4c24-adc0-c2d2e4c1f053" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:40 -05:00
yindo closed this issue 2026-02-16 18:14:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10077