Skip to content

Clarify agent harness defaults in create flow#2601

Merged
klopez4212 merged 19 commits into
mainfrom
kennylopez-agent-harness-defaults
Jul 24, 2026
Merged

Clarify agent harness defaults in create flow#2601
klopez4212 merged 19 commits into
mainfrom
kennylopez-agent-harness-defaults

Conversation

@klopez4212

@klopez4212 klopez4212 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • clarify inherited harness, provider, and model defaults in agent creation
  • default unset harnesses to Buzz Agent, then reveal provider → model with animated resizing
  • flatten defaults fields and keep compact segmented-control styling
  • keep Advanced collapsed until the user opens it
  • center agent and team grids and align the page header to the four-card width

Test plan

  • pnpm check
  • pnpm test (3,435 passed)
  • global agent configuration smoke spec (13 passed)

@klopez4212
klopez4212 marked this pull request as ready for review July 23, 2026 20:08
@klopez4212
klopez4212 requested a review from a team as a code owner July 23, 2026 20:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd36b13d7c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentDefinitionDialog.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ebcb62f66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentDefinitionDialog.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 86f4e13e27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentDefinitionDialog.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1e0a7edcff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentDefinitionDialog.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97f2885b59

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentDefinitionDialog.tsx
Comment thread desktop/src/features/agents/ui/AgentInstanceEditDialog.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 416de2bfd6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentConfigFields.tsx

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90cf41d705

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/src/features/agents/ui/AgentConfigFields.tsx Outdated
Comment thread desktop/src/features/agents/ui/AgentInstanceEditDialog.tsx
wesbillman
wesbillman previously approved these changes Jul 24, 2026

@wesbillman wesbillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the create/edit/defaults runtime, provider/model, credential, and submit paths at e1b8bbf. The progressive defaults flow preserves explicit harness choices, resynchronizes inherited harness changes, keeps missing-credential gates fail-closed while async satisfaction sources load, and correctly treats baked/runtime-file credentials and explicit-empty shadowing. Custom-command editing and advanced-only requirements remain reachable without automatic disclosure. CI is green, including Desktop Core, all smoke shards, and Desktop E2E integration. No blocking findings.

@wesbillman
wesbillman dismissed their stale review July 24, 2026 00:18

Withdrawing pending a deeper subsystem-by-subsystem review due to the size and statefulness of this change.

@wesbillman wesbillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Second-pass review at e1b8bbff482c1d8a2efd03d3df28b9969cbd1e48, after dismissing my initial fast approval. I re-reviewed the full 33-file diff against main by behavior rather than by file count.

Verified:

  • Create state machine: initial/default runtime seeding, defaults↔custom transitions, explicit-vs-inherited harness pinning, live global-default updates, no-runtime/unavailable-runtime handling, and runtime/model/provider payload serialization.
  • Readiness: provider/model normalization and required credentials agree with submit gates; baked/global/runtime-file layers follow backend precedence; async credential queries fail closed; explicit-empty shadowing is preserved.
  • Global defaults/onboarding: progressive reveal, provider/model healing policy, visible fallback-runtime persistence on the next edit, file-satisfied credentials, dirty/save race protection, and runtime changes resetting dependent values.
  • Instance edit: catalog arrival, inherit↔pin/custom-command transitions, prospective runtime selection, provider capability tri-state, credential gating, and update payload omission/clear/set behavior. The custom command moved out of Advanced with the same validity predicate, and advanced-only missing credentials now have a visible badge.
  • Removed submit guidance: the remaining disabled paths are represented by visible fields/defaults state/setup warnings/Advanced Required badges; Enter and button submission share the same gate.
  • Scoped AGENTS.md guidance was updated. Layout-only card/header changes are isolated.

I also read every automated review thread and confirmed each reported issue is addressed in the final head. Independent focused second passes found no reproducible defect. One non-blocking consistency nit remains: whitespace-only credentials are trimmed by Global Defaults validation but treated as present in Create/Edit; empty-string shadowing is correct.

CI is green at this exact head (Desktop Core/build, all smoke shards, both Desktop E2E integration shards, aggregate Desktop E2E, Semgrep, zizmor, DCO). Per review policy I did not run local tests.

@klopez4212
klopez4212 merged commit 76aeae7 into main Jul 24, 2026
25 checks passed
@klopez4212
klopez4212 deleted the kennylopez-agent-harness-defaults branch July 24, 2026 00:23
tlongwell-block pushed a commit that referenced this pull request Jul 24, 2026
* origin/main:
  Clarify agent harness defaults in create flow (#2601)
  chore(mobile): relax release check (#2636)

Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
brow pushed a commit that referenced this pull request Jul 24, 2026
…r-only

* origin/main: (28 commits)
  Clarify agent harness defaults in create flow (#2601)
  chore(mobile): relax release check (#2636)
  fix: expose community icon control on open relays (#2640)
  chore(release): release Buzz Desktop version 0.4.24 (#2627)
  feat: remember per-community navigation location (#2629)
  fix(desktop): suppress Windows console flashes and reject WSL bash alias (#2587)
  fix(desktop): fix Windows PATH clobber and .cmd shim EINVAL (#2563)
  Update SECURITY.md
  chore(mobile): lighter-weight release process (#2144)
  Gate default relay auto-connect behind release flag (#2589)
  fix(desktop): fast-track relay restart reconnects (#2579)
  fix(sharing): preserve agent/team snapshot tEXt chunks through media sanitization (#2438)
  fix(acp): restrict DM turns to owner and verified siblings (#2591)
  test(desktop): live relay kill/restart reconnect gate (#2583)
  fix(relay): send 1012 restart close to all clients on graceful drain (#2575)
  fix(desktop): retry failed initial relay dials (#2564)
  Refine channel lifecycle settings (#2427)
  Fix avatar upload lifecycle edge cases (#2277)
  fix(observer): eager archive hydration on panel open + 200-frame pages (#2574)
  fix(cli): install rustls crypto provider to unbreak WSS publishes in release builds (#2590)
  ...

Co-authored-by: npub102wg7q285p64ch2fjvstmf2ntn2sz3c4u5hmwatalc76mhsuauysftjtfj <7a9c8f0147a0755c5d499320bda5535cd5014715e52fb7757dfe3dadde1cef09@buzz.block.builderlab.xyz>
Signed-off-by: npub102wg7q285p64ch2fjvstmf2ntn2sz3c4u5hmwatalc76mhsuauysftjtfj <7a9c8f0147a0755c5d499320bda5535cd5014715e52fb7757dfe3dadde1cef09@buzz.block.builderlab.xyz>

# Conflicts:
#	desktop/src-tauri/build.rs
#	desktop/src/features/agents/ui/AgentDefinitionDialog.tsx
#	desktop/src/testing/e2eBridge.ts
#	desktop/tests/helpers/bridge.ts
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