Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use first app in order instead of latest_app_status for focus in tasks#18239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
blink-so wants to merge3 commits intomainfromfix/tasks-page-app-focus-order

Conversation

blink-so[bot]
Copy link
Contributor

@blink-soblink-sobot commentedJun 4, 2025

Problem

The tasks page (both list view and individual task view) was auto-focusing on Claude terminal apps instead of respecting the defined app order. This happened because the focus logic usedlatest_app_status.app_id, which always points to the most recently active app. Since Claude apps report status updates frequently, they would always become the "latest" app and auto-focus.

Solution

Modified both components to use thefirst app in order instead of the most recently active app:

Changes Made

  1. TasksPage.tsx (tasks list view):

    • Get all apps from all agents, excluding chat UI app
    • UseallApps[0] (first app) instead oflatest_app_status.app_id
    • Create a synthetic status object for the focused app
  2. TaskApps.tsx (individual task view):

    • Useapps[0] (first app) instead oflatest_app_status.app_id for initial focus
    • Maintains user's ability to switch between apps after initial load

Behavior Change

  • Before: Claude terminal apps always auto-focused due to frequent status updates
  • After: The first app in the defined order gets focus, respecting template configuration

This makes the focus behavior consistent with the visual tab ordering that users see and expect.

Testing

  • Verified TypeScript compilation
  • Changes maintain existing functionality while fixing the focus issue
  • No breaking changes to existing APIs

… tasksThis change modifies both the tasks page (list view) and individual task pageto focus on the first app in order rather than the most recently active app.Previously, Claude terminal apps would auto-focus because they report statusupdates frequently, making them the 'latest_app_status'. Now the focusrespects the app ordering as defined in templates.Changes:- TasksPage: Use first app from all agents instead of latest_app_status.app_id- TaskApps: Use first app in apps array instead of latest_app_status.app_id- Both components now exclude AI_APP_CHAT_SLUG consistentlyFixes the issue where Claude terminal apps always auto-focus instead ofrespecting the defined app order in templates.
bpmct pushed a commit that referenced this pull requestJun 5, 2025
@bpmctbpmct closed thisJun 5, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

@hugodutkahugodutkaAwaiting requested review from hugodutka

@code-ashercode-asherAwaiting requested review from code-asher

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@kylecarbs@bpmct@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp