Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Merge origin/main into feat/harness-grid

bitcoinbuilder1c7f2a0e9a27
diff --cc cli/src/backendSocket.ts
index d3f840616,59946e6bb..3fb9df6fa
--- a/cli/src/backendSocket.ts
+++ b/cli/src/backendSocket.ts
@@@ -26,9 -28,9 +28,10 @@@ import { ENGINES, type AgentEngine } fr
import { listDir } from './lib/fsBrowse.js'
import { linkCodexProfile, listCodexProfiles } from './lib/codexProfiles.js'
import { parseGridLaunchOverride, type GridLaunchOverride } from './lib/gridLaunch.js'
+import { listGridModels, resolveGridTarget } from './lib/gridModels.js'
import { readAccountUsage, type AccountUsageReading } from './lib/accountUsage.js'
import { probeEngines } from './lib/engineProbe.js'
+ import { AgentCreationReceipts, AgentCreationReceiptError, creationFingerprint, validCreationId, type AgentCreationStatus } from './lib/agentCreationReceipt.js'
import { engineInstallRecipe } from './lib/engineInstall.js'
import { agentFrame, type AgentFrame } from './lib/agentFrame.js'
import { routeVoiceTask } from './lib/voiceRouter.js'
diff --cc desktop/lib/widgets/terminal_panel.dart
index 4a6055449,839298cd9..63e96049a
--- a/desktop/lib/widgets/terminal_panel.dart
+++ b/desktop/lib/widgets/terminal_panel.dart
@@@ -31,8 -31,7 +31,8 @@@ import '../terminal/terminal_viewport.d
import '../shared/theme/app_theme.dart' as grid;
import '../theme/app_theme.dart';
import 'engine_identity.dart';
- import 'pane_actions_menu.dart';
+import 'grid_model_picker.dart';
+ import 'pane_header_actions.dart';
/// The pane header's own horizontal inset.
const double _stripPadding = 14;
@@@ -1436,53 -1544,53 +1545,75 @@@ class _TerminalHeader extends Stateless
),
),
),
- ),
- // The model picker sits next to the NAME, because that is the pair a person reads
- // together: this agent, on that model. Hidden while a notice is showing — a header
- // asking to reconnect is not the moment to offer a menu.
- if (status == null && !readOnly) ...[
- const SizedBox(width: 8),
- GridModelPicker(
- notifier: notifier,
- machineId: session.machineId,
- currentModel: agent?.gridModel,
- engineLabel: session.engineId,
- onSelected: (model) => unawaited(
- notifier.retargetAgentToGridModel(
- session.machineId,
- session.agentId,
- model.id,
++ // The model picker sits next to the NAME, because that is the pair a person reads
++ // together: this agent, on that model. Hidden while a notice is showing — a header
++ // asking to reconnect is not the moment to offer a menu.
++ if (status == null && !readOnly) ...[
++ const SizedBox(width: 8),
++ GridModelPicker(
++ notifier: notifier,
++ machineId: session.machineId,
++ currentModel: agent?.gridModel,
++ engineLabel: session.engineId,
++ onSelected: (model) => unawaited(
++ notifier.retargetAgentToGridModel(
++ session.machineId,
++ session.agentId,
++ model.id,
++ ),
++ ),
++ onUseOwnLogin: () => unawaited(
++ notifier.clearAgentGrid(session.machineId, session.agentId),
+ ),
+ ),
- onUseOwnLogin: () => unawaited(
- notifier.clearAgentGrid(session.machineId, session.agentId),
- ),
- ),
- ],
- if (compact && status == null && project?.branch != null) ...[
- const SizedBox(width: 16),
- Tooltip(
- message: '${project!.branch}\n${project.cwd}',
- child: Row(
- mainAxisSize: MainAxisSize.min,
- children: [
- Icon(
- LucideIcons.gitBranch,
- size: 12,
- color: AppColors.mutedStrong,
- ),
- const SizedBox(width: 5),
- ConstrainedBox(
- constraints: BoxConstraints(
- maxWidth: math.min(112, constraints.maxWidth * .22),
++ ],
+ const SizedBox(width: 8),
+ if (status != null)
+ ConstrainedBox(
+ constraints: BoxConstraints(
+ maxWidth: math.max(
+ 0,
+ math.min(
+ constraints.maxWidth * .3,
+ constraints.maxWidth - actionsWidth - 110,
),
- child: Text(
- project.branch!,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: TextStyle(
- fontSize: 11,
- color: AppColors.textSoft,
+ ),
+ ),
+ child: Align(
+ alignment: Alignment.centerRight,
+ child: Tooltip(
+ message: status.detail,
+ child: TextButton(
+ onPressed: canReconnect
+ ? () => notifier.selectAgent(
+ session.machineId,
+ session.agentId,
+ )
+ : null,
+ style: TextButton.styleFrom(
+ foregroundColor: color,
+ disabledForegroundColor: AppColors.textSoft,
+ minimumSize: Size.zero,
+ tapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ padding: const EdgeInsets.symmetric(
+ horizontal: 6,
+ vertical: 4,
+ ),
+ ),
+ child: Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Icon(status.icon, size: 14),
+ const SizedBox(width: 6),
+ Flexible(
+ child: Text(
+ status.label,
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ style: const TextStyle(fontSize: 11),
+ ),
+ ),
+ ],
),
),
),