Repository navigation
fix(e2e): 撮影のセッション一覧のモックをアカウントごとの一覧の配列にする - #645
Merged
Merged
Conversation
#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
There was a problem hiding this comment.
🟢 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
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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