- Notifications
You must be signed in to change notification settings - Fork906
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
… 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.
kylecarbs approved these changesJun 5, 2025
bpmct pushed a commit that referenced this pull requestJun 5, 2025
Same as#18239, but only thenecessary code
Sign up for freeto 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.
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 used
latest_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
TasksPage.tsx (tasks list view):
allApps[0]
(first app) instead oflatest_app_status.app_id
TaskApps.tsx (individual task view):
apps[0]
(first app) instead oflatest_app_status.app_id
for initial focusBehavior Change
This makes the focus behavior consistent with the visual tab ordering that users see and expect.
Testing