Skip to content

fix(e2e): 撮影のセッション一覧のモックをアカウントごとの一覧の配列にする - #645

Merged
kan merged 1 commit into
mainfrom
fix/644-e2e-live-sessions-mock
Nov 21, 2026
Merged

kan merged 1 commit into
mainfrom
fix/644-e2e-live-sessions-mock

Conversation

@kan

@kan kan commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Closes #644

変更

e2e/specs/agent-sessions.ts の agent_live_sessions のモックを、アカウントごとの一覧の配列(LiveSessionList[])にした。

#639 で戻り値が 1 つの一覧({ sessions, configDir, account })から配列に変わったが、撮影のモックは古い形のままだった。v0.74.0 のリリース前の撮影(run 44904284531)が、パネルに行が出ずに落ちていた。

  • agent は claude、current は true。アカウントが 1 つなので、見出しは出ない
  • shell は、擬似プロジェクトとターミナルのタブと同じ { kind: 'powershell' }。行とタブは、エージェント・シェル・セッション id の組で突き合わせるため

アプリのコードは変えていないので、CHANGELOG には足していない。

確認

E2E は just check にも PR の CI にも入っていないので、このブランチで撮影を commit: false で回した(run 44906222248)。

🤖 Generated with Claude Code

https://claude.ai/code/session_01PZw9ivts7jGNNjCRQ8kYDN

#639 で agent_live_sessions が LiveSessionList[] を返すようになったが、
agent-sessions の撮影のモックは 1 つの一覧の形のままで、パネルに行が出ずに
落ちていた。shell は擬似プロジェクトとターミナルのタブと同じ powershell にする。

Closes #644

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZw9ivts7jGNNjCRQ8kYDN
@kan kan added the bug Something isn't working label Nov 21, 2026
Copilot AI balanced review requested due to automatic review settings November 21, 2026 12:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The agent-session screenshot mock update has no active review issues.

No open issues 🎉

What changed in this PR

Updates the agent-session screenshot mock to match the per-account response introduced in #639, addressing the capture failure in #644 without changing application code.

Changes:

  • Returns a LiveSessionList[] containing one current Claude account.
  • Sets the PowerShell environment to match the fake project and terminal tabs, preserving session-to-tab matching and the single-account display.
File Description
e2e/​specs/​agent-sessions.ts Updates the mock response shape and account metadata to match the current API contract.

Review effort: Balanced

@kan
kan merged commit 8aaf5b4 into main Nov 21, 2026
14 checks passed
@kan
kan deleted the fix/644-e2e-live-sessions-mock branch November 21, 2026 14:35
@github-actions github-actions Bot mentioned this pull request Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

撮影の agent-sessions がセッション一覧のモックの形の食い違いで落ちる

2 participants