Skip to content

Walk recently visited Agent panes across projects with Ctrl+Tab in the Agent area - #306

Merged
yansfil merged 7 commits into
mainfrom
agent-ctrl-tab-global
Oct 1, 2026
Merged

yansfil merged 7 commits into
mainfrom
agent-ctrl-tab-global

Conversation

@yansfil

@yansfil yansfil commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Related: Closes #301 (follows #284)

Summary

Agent 영역에 키보드가 있을 때 Ctrl+Tab과 Ctrl+Shift+Tab(브라우저에서는 ⌥)이 이번 세션에 키보드가 들어갔던 agent pane을 최근 순으로 돕니다. 범위는 모든 기기, 프로젝트, checkout입니다. 한 줄은 pane 하나라서, 한 탭에 agent가 둘이면 두 줄로 나옵니다. agent가 없는 셸 pane은 목록에 나오지 않고, 셸 pane에서 누르면 가장 최근 agent pane으로 갑니다(운영자 결정). 놓으면 Agents 목록에서 고를 때와 같은 focus_pane` 이벤트 하나로 그 pane의 기기, 프로젝트, 탭, pane이 앞에 오고 키보드가 그 pane으로 갑니다.
View 영역의 Ctrl+Tab은 #284 그대로 그 영역의 탭만 돕니다.

Agent pane에 키보드를 둔 채 ⌥`를 누른 상태: 목록 제목이 Recent Agent panes이고, 현재 pane(fixture의 Agent one) 다음에 다른 프로젝트 beta의 Codex가 선택되어 있습니다

Review

  • 판단해 주세요: 방문한 pane만 나옵니다. 앱을 다시 띄운 직후에는 목록이 비어 있고, #284처럼 아직 가지 않은 탭을 뒤에 붙이지 않습니다.
  • 조심해서 볼 파일: web/src/App.tsx - high-frequency path. 스냅샷마다 도는 관찰 조건에 focused 섹션 변경을 더했습니다. share()가 바뀌지 않은 섹션의 참조를 유지하므로 프레임마다 돌지는 않습니다.
  • 조심해서 볼 파일: web/src/areaCycle.ts agentOrigin - 출발 pane은 Agent 영역이 그리는 탭(일반 탭 또는 delegated canvas)에서만 받습니다. 원격 기기가 앞에 있을 때의 경로는 코드로만 추적했습니다.
  • 조심해서 볼 파일: web/src/keyboard.ts commitCycle - 출발점 판정을 다시 썼습니다. View, Recent Panels, Recent Projects의 판정은 이전과 같습니다.

Evidence

  • 확인한 것: 격리된 Herdr와 debug hided 위의 웹 e2e recent.spec.ts에서 beta의 Codex pane에서 fixture로 옮긴 뒤 ⌥를 눌렀습니다. 목록 첫 줄은 현재 pane이고, 선택된 줄은 beta의 Codex(beta · Terminal, codex agent)였습니다. 놓으면 focus_pane`이 한 번 나가고 beta 탭이 앞에 왔습니다. 위 이미지가 그때의 캡처입니다.
  • 확인한 것: 데스크톱 e2e keys.spec.ts에서 agent를 띄운 세 탭 사이로 ⌃Tab 두 번, ⌃⇧Tab 왕복이 pane 단위로 움직이고, 놓을 때마다 focus_pane이 정확히 한 번 나갔습니다. 웹 s2.spec.ts에서는 셸 탭에서 ⌥`를 누르면 첫 탭의 agent pane이 첫 후보로 나오고, 방문한 셸 pane은 행으로 나오지 않습니다.
  • 확인한 것: 단위 테스트 12개(web/src/areaCycle.test.ts)가 기기·checkout을 가로지르는 순서, 셸 pane 제외와 셸에서 시작할 때의 첫 후보, 원격 pane의 기기 칩과 remote_control 확정, 확정 중 지나가는 프레임을 방문으로 치지 않는 것, 닫힌 pane과 끝난 agent의 제거(누르고 있는 동안 출발 pane의 agent가 끝나도 남은 후보 유지), 그려지지 않은 탭의 pane 거부, delegated canvas를 확인합니다.
  • 확인한 것: origin/main(Make ⌘K a navigation palette for agents, projects, issues and pull requests #291, Keep a parent relationship only while both panes host the sessions it was made for #300 포함)을 merge한 head에서 scripts/verify-web.sh 통과(웹 단위 785개, 데스크톱 81개, hcoord, typecheck, lint, build). 같은 head에서 웹 e2e recent, s2, palette와 데스크톱 keys.spec 전체를 다시 돌려 통과했습니다. 별도 리뷰(코드, 요구사항 충실도, 수정분 두 번)의 Fix now를 모두 반영했습니다.
  • 확인하지 못한 것: 원격 기기(mini)를 앞에 둔 실제 화면 확인. 원격 pane은 단위 테스트로만 확인했습니다.
  • 확인하지 못한 것: 데스크톱 browser.spec.ts의 area cycle native. 실제 HID 입력과 창 포커스가 필요해 로컬에서 돌리지 않았고 CI의 macOS runner에 맡깁니다. 이 경로는 View 전용이며 이번 변경이 건드리지 않았습니다.
  • 확인하지 못한 것: 설치된 앱에서의 확인. /Applications/hide.app은 교체하지 않았습니다.

…e Agent area

In the Agent area, Ctrl+Tab and Ctrl+Shift+Tab (Option+Backquote in a
browser) now walk every terminal pane the keyboard has been in this
session, one row per pane, across devices, projects and checkouts.
Releasing commits the pane the way the Agents list does: one focus_pane
that brings its device, project, tab and pane forward. A View area keeps
cycling only its own tabs.

The shell keeps a second session-local order of pane visits beside the
surface order, gated while a commit is landing so passing frames are not
visits, and pruned to the panes that exist.

Closes #301
…delegated canvas

A keyboard owner left on a pane whose tab no Agent area draws is stale,
so it no longer starts the cycle or records a visit; the tab bar reads
the focused pane the way the store does. The delegated-canvas test now
draws a child tab as a canvas instead of reusing a normal area tab.
A pane that runs no agent is no longer a row; its visits stay recorded
for when an agent starts there. From such a pane the first chord lands on
the most recent agent pane. The pane-title helper goes back to the pane
view, since rows are always named by their agent now.
… held

The held cycle's minimum row count now reads the rows that survived, so
an origin whose agent ended no longer takes a still-valid target with it.
s2 also checks that the second tab's shell pane is not a row.
# Conflicts:
#	docs/ARCHITECTURE.md
#	web/src/search.test.ts
@yansfil
yansfil merged commit a425cfe into main Oct 1, 2026
17 checks passed
@yansfil
yansfil deleted the agent-ctrl-tab-global branch October 1, 2026 17:10
yansfil added a commit that referenced this pull request Oct 3, 2026
Related: #349, `agents/prd/overview-modal/prd.md` (이어지는 작업: #350, 관련:
#306, #347, `agents/prd/three-column-panel/prd.md`)

## Summary

이슈 #349를 구현하기 전에 운영자가 승인할 PRD만 추가합니다. 코드는 바꾸지 않습니다.
Overview를 프로젝트 소속이 아닌 하나의 화면으로 만들어, Workspace 위에서는 모달, 중앙에 Workspace가
없으면 페이지로 보이고 범위는 All projects와 현재 프로젝트를 전환합니다.
진입점은 사이드바 맨 위 `Overview` 행(내 차례 수와 `⌘⇧O`), 툴바의 글자 없는 아이콘(내 차례가 있으면 점),
`⌘⇧O`입니다.
`⌘⇧P`/`⌘⇧A`는 사이드바 Projects/Agents 탭의 직접 키이고, Overview에서도 `⌃Tab`이 가장 최근
에이전트 pane으로 갑니다.
Decisions 25개, Behaviors 35개입니다. 화면은 아직 바뀌지 않아 이미지는 없습니다.

## Review

- **판단해 주세요 (툴바 순서)**: 점과 열린 View 개수 뱃지가 붙지 않도록 Overview 아이콘을 Open
server 앞에 둡니다. 시안은 globe 다음이었고 개수 뱃지를 뺀 그림이었습니다(D-07, B5).
- **판단해 주세요 (Home 행)**: Home 행은 지금처럼 Overview 페이지를 엽니다. 시안의 "Home is
only the Home workspace"는 #350이나 보드 승인 때 다시 봅니다(D-17).
- **판단해 주세요 (범위 내용)**: All projects는 오늘 Home Overview, 현재 프로젝트는 오늘 프로젝트
Overview를 그대로 담습니다. 기기 횡단은 하지 않습니다(D-12).
- **판단해 주세요 (내 차례 수)**: 앞에 있는 기기의 Needs You 수로, 사이드바 `Needs You · N`과
같습니다. 0이면 수도 점도 없습니다(D-14).
- **판단해 주세요 (사이드바 탭 키)**: `⌘⇧P`/`⌘⇧A`는 숨은 사이드바를 보이고 키보드를 그 목록으로 옮깁니다.
`Toggle sidebar view`는 없앱니다(D-18).
- **판단해 주세요 (⌘⇧H)**: Project home은 기본 chord 없이 ⌘K, View 메뉴, 툴바 메뉴로
남습니다(#350까지, B22).
- **조심해서 볼 파일**: `agents/prd/overview-modal/prd.md` Technical structure
- 웹 셸 페이지 상태만 바뀌고 core, wire, Herdr 계약은 그대로라는 경계.
- **질문**: 구현 전에 `home-final.html` 보드를 `design/hide-screens.pen`으로 옮겨
승인받아야 합니다. 시안에 없는 상태(수 0, 라이트, 좁은 창, 선택된 탭)를 어느 세션에서 그릴까요? 이 machine에는
`pen`이 없습니다(D-21).

## Evidence

- **확인한 것**: `sasu gate gap-audit` PASS(1차 BLOCK 2건: Home 행 동작, 팔레트 중
⌘⇧O를 고친 뒤), `sasu gate spec` PASS, 둘 다 sealed입니다.
- **확인한 것**: `sasu prd readiness`가 blocking gap 0개로 통과했습니다(behaviorCount
35, decisionCount 25).
- **확인한 것**: `shortcuts.ts`, `menu.ts`, `areaCycle.ts`, `keyboard.ts`,
`ui.ts`, `App.tsx`, `MainScreen.tsx`, `ProjectOverview.tsx`,
`sidebar.tsx`, `WorkspaceScreen.tsx`와 `UI_BEHAVIOR.md`,
`ARCHITECTURE.md`, `BROWSER_DISPLAYS.md`, `status-model.md`를 읽고 사실 진술을
맞췄습니다.
- **확인한 것**: `⌘⇧O`, `⌘⇧P`, `⌘⇧A`는 REGISTRY, `CHROME_RESERVED`,
`MACOS_RESERVED`, Electron 메뉴 accelerator에 없습니다.
- **확인한 것**: `check-no-workstation-identity.sh`,
`check-no-attribution.py`가 통과했습니다.
- **확인하지 못한 것**: macOS 시스템 단축키, 다른 앱, Chrome(⌘⇧A 탭 검색)과의 충돌은 확인하지 않았습니다.
- **확인하지 못한 것**: 운영자가 이 실행에서 새 질문에 답할 수 없어 qa-log는 이슈 #349, #350, 시안,
handoff에서 썼고, 위임 범위의 가정은 PRD에 가정으로 표시했습니다.
- **확인하지 못한 것**: 원칙 저장소에 ROOT.md가 없어 `sasu principles list`가 실패했습니다.
engineering 원칙은 직접 읽었습니다(D-25).
- **확인하지 못한 것**: three-column-panel 구현이 아직 main에 없어 그 툴바와의 실제 배치는 보지
못했습니다. 코드 변경이 없어 web, desktop, cargo lane은 실행하지 않았습니다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent 영역에서 Ctrl+Tab이 모든 프로젝트에서 방문한 agent pane을 최근 순으로 돌게 한다

1 participant