Skip to content

feat: Parallelize task startup and session creation#958

Merged
k11kirky merged 6 commits intomainfrom
02-19-reduce_task_startup_latency
Feb 20, 2026
Merged

feat: Parallelize task startup and session creation#958
k11kirky merged 6 commits intomainfrom
02-19-reduce_task_startup_latency

Conversation

@charlesvien
Copy link
Member

@charlesvien charlesvien commented Feb 19, 2026

  • Agent session: Run fetchMcpToolMetadata, getModelConfigOptions and getAvailableSlashCommands in parallel. Make trySetModel fire-and-forget. Same pattern for resumeSession
  • Workspace setup: Parallelize loadConfig + buildWorkspaceEnv in local mode (worktree mode already did this)
  • Reconnect: Batch config option restoration with Promise.allSettled instead of sequential awaits
  • Task creation saga: Start folder registration in parallel with task creation for new tasks

@charlesvien charlesvien changed the title Reduce task startup latency feat: Reduce task startup latency Feb 19, 2026
@charlesvien charlesvien changed the title feat: Reduce task startup latency perf: Parallelize task startup and session creation Feb 19, 2026
@charlesvien charlesvien marked this pull request as ready for review February 19, 2026 23:23
@charlesvien charlesvien force-pushed the 02-19-default_to_local_mode_instead_of_worktree_for_new_tasks branch from f0a85dc to 893bdc9 Compare February 19, 2026 23:30
@charlesvien charlesvien force-pushed the 02-19-reduce_task_startup_latency branch from 7d74c98 to 7329ee9 Compare February 19, 2026 23:30
@charlesvien charlesvien changed the title perf: Parallelize task startup and session creation fix: Parallelize task startup and session creation Feb 19, 2026
@charlesvien charlesvien changed the title fix: Parallelize task startup and session creation feat: Parallelize task startup and session creation Feb 19, 2026
@charlesvien charlesvien force-pushed the 02-19-reduce_task_startup_latency branch from 4827824 to eef5eac Compare February 20, 2026 01:07
@charlesvien charlesvien force-pushed the 02-19-default_to_local_mode_instead_of_worktree_for_new_tasks branch from 66d49c2 to b244252 Compare February 20, 2026 01:10
@charlesvien charlesvien force-pushed the 02-19-reduce_task_startup_latency branch 2 times, most recently from 9625ee4 to b405d29 Compare February 20, 2026 01:18
@charlesvien charlesvien force-pushed the 02-19-default_to_local_mode_instead_of_worktree_for_new_tasks branch from b244252 to a8a2af8 Compare February 20, 2026 01:18
Copy link
Contributor

@k11kirky k11kirky left a comment

Choose a reason for hiding this comment

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

nice ideas!

@charlesvien charlesvien force-pushed the 02-19-default_to_local_mode_instead_of_worktree_for_new_tasks branch from a8a2af8 to 32280ff Compare February 20, 2026 02:35
@charlesvien charlesvien force-pushed the 02-19-reduce_task_startup_latency branch from b405d29 to 5155dc8 Compare February 20, 2026 02:35
@charlesvien charlesvien changed the base branch from 02-19-default_to_local_mode_instead_of_worktree_for_new_tasks to graphite-base/958 February 20, 2026 02:58
@charlesvien charlesvien force-pushed the 02-19-reduce_task_startup_latency branch from 5155dc8 to 0d6b764 Compare February 20, 2026 03:07
@graphite-app graphite-app bot changed the base branch from graphite-base/958 to main February 20, 2026 03:07
@charlesvien charlesvien force-pushed the 02-19-reduce_task_startup_latency branch 2 times, most recently from 60b013e to 67fbad5 Compare February 20, 2026 03:29
Copy link
Contributor

k11kirky commented Feb 20, 2026

Merge activity

  • Feb 20, 5:02 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 20, 5:02 AM UTC: @k11kirky merged this pull request with Graphite.

@k11kirky k11kirky merged commit b5bcc3f into main Feb 20, 2026
13 checks passed
@k11kirky k11kirky deleted the 02-19-reduce_task_startup_latency branch February 20, 2026 05:02
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.

2 participants