Skip to content

Revamp new agent dialog#1201

Merged
wesbillman merged 40 commits into
mainfrom
kennylopez-new-agent-modal
Jun 29, 2026
Merged

Revamp new agent dialog#1201
wesbillman merged 40 commits into
mainfrom
kennylopez-new-agent-modal

Conversation

@klopez4212

@klopez4212 klopez4212 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Revamps the new/edit agent dialog into the new agent flow with the profile-style avatar affordance, compact controls, and animated advanced fields.
  • Makes Buzz Agent the default available runtime, labels Databricks as the default LLM provider, and keeps adapter-missing runtimes last.
  • Adds model selection before save with Databricks fallbacks plus live discovery for OpenAI, OpenAI-compatible, and Anthropic when provider credentials are entered or inherited from the app environment.
  • Keeps provider API keys in dedicated fields while preserving advanced environment variables, imported avatars/name pools, and runtime/provider/model state.
  • Addresses review feedback by debouncing credential-driven discovery, keeping the model picker visible for inherited provider credentials, hiding provider credential controls for provider-locked runtimes, reading direct model API credentials from inherited env when needed, and filtering nonpersistent imported avatar refs.

Screenshots

Default new agent dialog

Default new agent dialog

Avatar menu

Avatar menu

LLM provider and model

LLM provider and model

Validation

  • git diff --check origin/main...HEAD
  • git diff --check
  • just desktop-check
  • just desktop-test (1216 tests)
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml model (15 tests)
  • cargo test --manifest-path desktop/src-tauri/Cargo.toml agent_models (6 tests)
  • just desktop-build
  • cd desktop && pnpm exec playwright test --project=integration tests/e2e/persona-env-vars.spec.ts (5 tests)
  • Pre-push hooks: desktop-test, rust-tests, mobile-test, desktop-tauri-test
  • shasum -a 256 desktop/test-results/pr-1201-screenshots/*.png

@klopez4212 klopez4212 force-pushed the kennylopez-new-agent-modal branch from 558fa41 to 9efe199 Compare June 23, 2026 16:15
@klopez4212 klopez4212 force-pushed the kennylopez-agent-profile-sidebar branch from 37d03e8 to 309889d Compare June 23, 2026 16:15
@klopez4212 klopez4212 changed the base branch from kennylopez-agent-profile-sidebar to main June 23, 2026 16:15
@klopez4212 klopez4212 marked this pull request as ready for review June 23, 2026 16:17

@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: 9efe199544

ℹ️ 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/personaDialogState.test.mjs Outdated
Comment thread desktop/src/features/agents/ui/usePersonaActions.ts Outdated
Comment thread desktop/src/features/agents/ui/usePersonaActions.ts 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: 9587e6bb13

ℹ️ 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/usePersonaActions.ts Outdated
Comment thread desktop/src/features/agents/ui/usePersonaActions.ts
@klopez4212 klopez4212 force-pushed the kennylopez-new-agent-modal branch from 9587e6b to 9b228b4 Compare June 25, 2026 13:15

@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: 9b228b4542

ℹ️ 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/PersonaDialog.tsx Outdated
Comment thread desktop/src/features/agents/ui/PersonaDialog.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: 6fb341bc61

ℹ️ 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/personaDialogState.ts Outdated
Comment thread desktop/src/features/agents/ui/PersonaDialog.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: 5cfe774546

ℹ️ 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/BatchImportDialog.tsx Outdated
@klopez4212 klopez4212 force-pushed the kennylopez-new-agent-modal branch from 15e9e48 to 17b5b77 Compare June 25, 2026 14:19

@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: 17b5b7749e

ℹ️ 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/PersonaDialog.tsx Outdated
Comment thread desktop/src/features/agents/ui/personaImportPlan.ts Outdated
Comment thread desktop/src/features/agents/ui/PersonaDialog.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: dbf808310d

ℹ️ 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/AgentCreationPreview.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: df6c2aea50

ℹ️ 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/usePersonaActions.ts
@klopez4212 klopez4212 force-pushed the kennylopez-new-agent-modal branch from df6c2ae to 37ef610 Compare June 25, 2026 15:20

@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: 37ef610740

ℹ️ 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/usePersonaActions.ts

@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: d38925291a

ℹ️ 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/PersonaDialog.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: aebc73dad5

ℹ️ 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/usePersonaActions.ts

@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

await page
.getByRole("dialog")
.screenshot({ path: "test-results/persona-env-dialog.png" });

P2 Badge Wait for dialog animations before screenshotting

The /workspace/buzz/AGENTS.md screenshot guidance makes waitForAnimations(page) mandatory before any page.screenshot() or locator.screenshot() in Playwright specs. This locator screenshot is taken right after expanding the Advanced section, which is animated in PersonaDialog via AnimatePresence/motion, so the captured PNG can be mid-transition or flaky; await the shared animation helper before capturing.

ℹ️ 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".

@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: 8f054f6f71

ℹ️ 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/personaDialogState.ts 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: 7d614efa4f

ℹ️ 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/usePersonaActions.ts 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: 97150fae3d

ℹ️ 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/PersonaDialog.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: 1a93f6ec88

ℹ️ 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/PersonaDialog.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: 4301c874f0

ℹ️ 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/PersonaDialog.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: 93f835808a

ℹ️ 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/AgentCreationPreview.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: 966021ec53

ℹ️ 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-tauri/src/commands/agent_models.rs Outdated
Comment thread desktop/src/features/agents/ui/PersonaDialog.tsx Outdated
klopez4212 added a commit that referenced this pull request Jun 28, 2026

@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: 0e0633618b

ℹ️ 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/PersonaDialog.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: d4da55bc65

ℹ️ 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-tauri/src/commands/agent_models.rs 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: 3c6af684af

ℹ️ 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-tauri/src/commands/agent_models.rs

@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: 7346d825b5

ℹ️ 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-tauri/src/commands/agent_models.rs 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: 8ca5f52213

ℹ️ 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-tauri/src/commands/agent_models.rs 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: 5a97d694c7

ℹ️ 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 on lines +53 to +57
if (
message.includes("DATABRICKS_HOST required") ||
message.includes("DATABRICKS_MODEL required") ||
message.includes("BUZZ_AGENT_PROVIDER required")
) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Surface the missing provider error before create

When Buzz Agent is the default runtime in an OSS build or any environment without Databricks build defaults/provider credentials, model discovery returns config: BUZZ_AGENT_PROVIDER required; this branch suppresses that error, and the create dialog still allows Auto provider with only a runtime selected. The result is that the default “Create agent” path can submit an agent that immediately fails to spawn instead of telling the user to choose/configure an LLM provider. Surface this error or block submit until a usable provider/default is present.

Useful? React with 👍 / 👎.

@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.

Amazing! I love all of this

@wesbillman wesbillman merged commit 826d735 into main Jun 29, 2026
24 checks passed
@wesbillman wesbillman deleted the kennylopez-new-agent-modal branch June 29, 2026 13:35
wpfleger96 added a commit that referenced this pull request Jun 29, 2026
Re-introduce resolve_effective_prompt_model_provider (runtime.rs) and
resolve_persona_env (env_vars.rs) deleted from main in 826d735
("Revamp new agent dialog #1201"). agent_config.rs and the provider
deploy path in agents.rs still call these; they were added as part of the
config-bridge feature and belong on this branch.

Restore AgentInfoFocusedView, DiagnosticsFocusedView, and
AgentInstructionsFocusedView exports in UserProfilePanelSections.tsx,
and add missing optional props (canAddToChannel, isActionPending,
onAddToChannel, etc.) that UserProfilePanel.tsx still imports/passes.
Our branch only touched config-bridge sections of this file, not these
unrelated exports — the rebase merged away the existing code.

Bump file-size limits in check-file-sizes.mjs for runtime.rs (+26 lines
for the re-added helper) and UserProfilePanelSections.tsx (+136 lines for
the restored focused-view components).

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
wpfleger96 added a commit that referenced this pull request Jun 29, 2026
Re-introduce resolve_effective_prompt_model_provider (runtime.rs) and
resolve_persona_env (env_vars.rs) deleted from main in 826d735
("Revamp new agent dialog #1201"). agent_config.rs and the provider
deploy path in agents.rs still call these; they were added as part of the
config-bridge feature and belong on this branch.

Restore AgentInfoFocusedView, DiagnosticsFocusedView, and
AgentInstructionsFocusedView exports in UserProfilePanelSections.tsx,
and add missing optional props (canAddToChannel, isActionPending,
onAddToChannel, etc.) that UserProfilePanel.tsx still imports/passes.
Our branch only touched config-bridge sections of this file, not these
unrelated exports — the rebase merged away the existing code.

Bump file-size limits in check-file-sizes.mjs for runtime.rs (+26 lines
for the re-added helper) and UserProfilePanelSections.tsx (+136 lines for
the restored focused-view components).

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
wpfleger96 added a commit that referenced this pull request Jun 29, 2026
Re-introduce resolve_effective_prompt_model_provider (runtime.rs) and
resolve_persona_env (env_vars.rs) deleted from main in 826d735
("Revamp new agent dialog #1201"). agent_config.rs and the provider
deploy path in agents.rs still call these; they were added as part of the
config-bridge feature and belong on this branch.

Restore AgentInfoFocusedView, DiagnosticsFocusedView, and
AgentInstructionsFocusedView exports in UserProfilePanelSections.tsx,
and add missing optional props (canAddToChannel, isActionPending,
onAddToChannel, etc.) that UserProfilePanel.tsx still imports/passes.
Our branch only touched config-bridge sections of this file, not these
unrelated exports — the rebase merged away the existing code.

Bump file-size limits in check-file-sizes.mjs for runtime.rs (+26 lines
for the re-added helper) and UserProfilePanelSections.tsx (+136 lines for
the restored focused-view components).

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
wpfleger96 added a commit that referenced this pull request Jun 29, 2026
OSS Buzz must stay provider/model-agnostic; Block-internal defaults belong
in buzz-releases via env vars, not baked into the OSS tree. This removes the
implicit Databricks fallback and the hardcoded Block-specific contamination
introduced by #1201, across three layers:

- buzz-agent config: resolve_provider/resolve_model no longer auto-infer
  Databricks. BUZZ_AGENT_PROVIDER is required; BUZZ_AGENT_MODEL wins over
  provider-specific env vars.
- desktop build/runtime: add a generic BUZZ_BUILD_AGENT_ENV passthrough
  (newline-delimited KEY=VALUE). build.rs validates and emits
  BUZZ_DESKTOP_BUILD_AGENT_ENV; runtime.rs parses it via parse_agent_env_lines()
  and injects each pair onto spawned agents (user env still wins). This lets
  internal builds bake DATABRICKS_HOST without naming Databricks in OSS; OSS
  builds leave it unset and inject nothing.
- persona dialog UI: delete the hardcoded Block model registry (goose-claude-*,
  databricks-gpt-*, etc.) sourced from squareup/goose-releases. Models now come
  exclusively from live discovery (usePersonaModelDiscovery -> discoverAgentModels);
  the only static fallback is the generic 'Default model' + freeform custom input.
  Drops the Databricks-default behavior. databricks_v2 remains a selectable
  provider option (parallel to the Rust enum), not a default.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
wpfleger96 added a commit that referenced this pull request Jun 29, 2026
OSS Buzz must stay provider/model-agnostic; Block-internal defaults belong
in buzz-releases via env vars, not baked into the OSS tree. This removes the
implicit Databricks fallback and the hardcoded Block-specific contamination
introduced by #1201, across three layers:

- buzz-agent config: resolve_provider/resolve_model no longer auto-infer
  Databricks. BUZZ_AGENT_PROVIDER is required; BUZZ_AGENT_MODEL wins over
  provider-specific env vars.
- desktop build/runtime: add a generic BUZZ_BUILD_AGENT_ENV passthrough
  (newline-delimited KEY=VALUE). build.rs validates and emits
  BUZZ_DESKTOP_BUILD_AGENT_ENV; runtime.rs parses it via parse_agent_env_lines()
  and injects each pair onto spawned agents (user env still wins). This lets
  internal builds bake DATABRICKS_HOST without naming Databricks in OSS; OSS
  builds leave it unset and inject nothing.
- persona dialog UI: delete the hardcoded Block model registry (goose-claude-*,
  databricks-gpt-*, etc.) sourced from squareup/goose-releases. Models now come
  exclusively from live discovery (usePersonaModelDiscovery -> discoverAgentModels);
  the only static fallback is the generic 'Default model' + freeform custom input.
  Drops the Databricks-default behavior. databricks_v2 remains a selectable
  provider option (parallel to the Rust enum), not a default.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
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