Group Android sessions by project

オープン
#198 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin
領域
mobile

調査の方向性

Start in feature/drawer, where ProjectIcon.kt already resolves a project for each session, and trace how the regular Pinned/Recents list is built. Group sessions under collapsible project headers by server project identity, so worktrees of one repo share a section. The issue also asks for a New Session action on each header that opens a draft in that project, and it leaves Catch Up, search and the Inbox Sidebar unchanged. The issue is design-heavy, so confirm the approach with maintainers before writing code.

索引モデルが issue の本文から書いたものです。

説明

Problem

When one OpenCode server has sessions from several projects, Android mixes them in the same sidebar list. The project label tells me where a row belongs, but I still have to scan unrelated sessions to find older work for one project. This affects the regular Pinned/Recents drawer and the experimental Inbox Sidebar, which orders sessions by attention rather than project.

Starting related work also takes a separate step: New Session opens a draft, then I may have to switch projects or choose the folder again. On a phone it would be easier to find the project once and start from there.

Proposal
  • Add collapsible project sections to the regular Android drawer. Use the server's project identity so different worktrees of the same repo stay together. Make older sessions reachable within their project, not just the sessions already loaded in Recents.
  • Offer New Session from a project header. Open a draft in that project without requiring a folder picker, and keep the selected working folder visible and changeable before the first send.
  • Keep Catch Up and cross-project search available. This should organize existing sessions, not move them or replace the experimental Inbox Sidebar.
Reference

Current behavior checked against Android v0.8.3 / 53b3e8a. The drawer already resolves a project for each session, so this can use the existing server data.

Desktop/web issue #55446 describes the same navigation problem. Desktop/web PR #57895 is a design reference for collapsible groups; it was not merged and is not an Android implementation.

主要言語
Kotlin
スター
146
フォーク
35
平均マージ
7時間 41分
マージ済み PR(30日)
221

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode-android のほかの issue

anomalyco/opencode-android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。