Skip to content

feat(web): configure Company Brain reasoning effort#1307

Merged
graphite-app[bot] merged 1 commit into
mainfrom
feat/company-brain-model-reasoning
Jul 18, 2026
Merged

feat(web): configure Company Brain reasoning effort#1307
graphite-app[bot] merged 1 commit into
mainfrom
feat/company-brain-model-reasoning

Conversation

@sreedharsreeram

@sreedharsreeram sreedharsreeram commented Jul 18, 2026

Copy link
Copy Markdown
Member

Stack context

Stacks on #1306, which moves Company Brain settings into the revamped Configure page.

Backend contract and runtime support: supermemoryai/mono#2581. The UI safely hides any effort controls omitted by an older backend response.

What changed

  • Adds independent Low, Medium, High, and Extra high reasoning controls for Main, Triage, and Research.
  • Saves model and reasoning edits together through the existing partial PATCH.
  • Keeps controls visible but disabled for non-admin members.
  • Explains that Extra high maps to High for Grok and GPT providers.

Validation

  • bunx biome check apps/web/hooks/use-brain-models.ts apps/web/components/settings/company-brain-models.tsx
  • bun run build in apps/web
  • git diff --check

The standalone web TypeScript command still reports pre-existing unrelated errors outside these files.


Session Details

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-mcp 9824f0c Jul 18 2026, 07:16 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app 9824f0c Commit Preview URL

Branch Preview URL
Jul 18 2026, 07:18 PM

sreedharsreeram commented Jul 18, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add the label Main to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vorflux

vorflux Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Reviewed the UI changes against the existing Company Brain settings patterns. No blocking issues found.

Checked that the controls use the same dark Nova styling primitives, degrade safely when effort choices are absent from older backend responses, keep non-admins disabled, and send a partial PATCH only for changed model/effort fields.

Local validation:

  • PATH=/home/ubuntu/.bun/bin:$PATH bunx biome check apps/web/hooks/use-brain-models.ts apps/web/components/settings/company-brain-models.tsx
  • git diff --check vorflux-review-base-configure-page-revamp...HEAD

@ThakerKush
ThakerKush marked this pull request as ready for review July 18, 2026 08:37
@claude

claude Bot commented Jul 18, 2026

Copy link
Copy Markdown

Claude finished @MaheshtheDev's task in 1m 17s —— View job


Reviewing PR #1307

  • Fetch and analyze PR diff
  • Check for bugs, security issues, and logic errors
  • Review existing comments to avoid duplicates
  • Submit review findings

Overview: Adds preset-based reasoning effort controls (Fastest/Balanced/Most thorough) with an Advanced panel for fine-grained model and effort configuration per role.

Issues found: None — this looks good to ship.

The implementation correctly:

  • Handles optional effort values with proper fallback chain (draft → resolved → defaults → "")
  • Only shows effort controls when backend provides effortOptions (graceful degradation for older backends)
  • Builds minimal PATCH payloads containing only changed values
  • Shows appropriate warning for xhigh on Grok/GPT providers (extraHighIsBounded check at line 469-479)
  • Properly detects active preset by comparing current state against all preset configs
  • Auto-opens Advanced panel when custom settings are in use (activePresetId === null)
  • Disables controls for non-admin members while keeping them visible

Score: 10/10

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

Overview: Adds reasoning effort controls (Low/Medium/High/Extra high) for Main, Triage, and Research models with proper state management and graceful backend degradation.

Issues found: None — this looks good to ship.

The implementation correctly:

  • Handles optional effort values with proper fallback chain (draft → resolved → defaults → "")
  • Prevents deselection issues via if (!value) return in ToggleGroup's onValueChange
  • Only shows effort controls when the backend provides effortOptions
  • Builds minimal PATCH payloads with only changed values
  • Shows appropriate warning for xhigh on Grok/GPT providers

Score: 10/10

@graphite-app
graphite-app Bot changed the base branch from feat/configure-page-revamp to graphite-base/1307 July 18, 2026 18:45
@graphite-app
graphite-app Bot force-pushed the feat/company-brain-model-reasoning branch from a3ffd13 to ea883ae Compare July 18, 2026 18:46
@graphite-app
graphite-app Bot force-pushed the graphite-base/1307 branch from f9f24ef to 20e585c Compare July 18, 2026 18:46
@graphite-app
graphite-app Bot changed the base branch from graphite-base/1307 to main July 18, 2026 18:47
@graphite-app
graphite-app Bot force-pushed the feat/company-brain-model-reasoning branch from ea883ae to 61b86cc Compare July 18, 2026 18:47
@polylane

polylane Bot commented Jul 18, 2026

Copy link
Copy Markdown

Note

Production impact unlikely.

Checked the reasoning-effort UI changes against supermemory-app; the PATCH contract is additive (new optional effort keys on the existing partial endpoint), no bindings/routes/error handling were removed, and the worker currently shows 0 errors on its low traffic.


view-investigation review-in-polylane disable-pr-reviews

Polylane analysed 61b86cc for production impact.

@graphite-app

graphite-app Bot commented Jul 18, 2026

Copy link
Copy Markdown

Merge activity

## Stack context

Stacks on #1306, which moves Company Brain settings into the revamped Configure page.

Backend contract and runtime support: supermemoryai/mono#2581. The UI safely hides any effort controls omitted by an older backend response.

## What changed

- Adds independent Low, Medium, High, and Extra high reasoning controls for Main, Triage, and Research.
- Saves model and reasoning edits together through the existing partial PATCH.
- Keeps controls visible but disabled for non-admin members.
- Explains that Extra high maps to High for Grok and GPT providers.

## Validation

- `bunx biome check apps/web/hooks/use-brain-models.ts apps/web/components/settings/company-brain-models.tsx`
- `bun run build` in `apps/web`
- `git diff --check`

The standalone web TypeScript command still reports pre-existing unrelated errors outside these files.

---
**Session Details**
- Session: [View Session](https://supermemory.us1.vorflux.com/agent-sessions/1c4f3ec7-a536-4105-bbe7-8b19e61f245f)
- Requested by: Sreeram Sreedhar (sreeram@supermemory.com)
- Address comments on this PR. Add `(aside)` to your comment to have me ignore it.
@graphite-app
graphite-app Bot force-pushed the feat/company-brain-model-reasoning branch from 61b86cc to 9824f0c Compare July 18, 2026 19:12
@graphite-app
graphite-app Bot merged commit 9824f0c into main Jul 18, 2026
6 checks passed
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