Skip to content

fix(studio): show active run config in Training Progress - #6856

Closed
rodboev wants to merge 5 commits into
unslothai:mainfrom
rodboev:pr/6853-active-run-config
Closed

rodboev wants to merge 5 commits into
unslothai:mainfrom
rodboev:pr/6853-active-run-config

Conversation

@rodboev

@rodboev rodboev commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Training Config popover on the Training Progress page can show the mutable form-store config instead of the config for the active training run. History already fetches the selected run record and displays its persisted config, which is why the same run can look correct in History and stale in Current Run.

Change

Share the run-config mapping used by History, fetch the active run record in LiveTrainingView when a job id is available, and pass that mapped config into ProgressSection. ProgressSection now uses the active run override for live runs while keeping live fallback to the form store, and historical runs no longer fall back to unrelated current form state when a saved config field is missing.

The active-run fetch keeps retrying transient 404s while the job is starting or running, so the frontend does not give up before the backend has created the training_runs row. Permanent 401/403 and completed-run 404s still stop the retry loop.

The config mapper now preserves explicit null values from persisted run records instead of replacing them with mutable store defaults.

The change stays in Studio frontend state and rendering code. It does not change backend training, persistence, or run creation.

Testing

  • cd /d studio/frontend && npm run typecheck && npm run build
  • Focused source proof for ProgressSection override precedence, LiveTrainingView run-config routing, transient fetch retry cleanup, explicit-null preservation, and history preservation

Result: frontend typecheck and build passed after reviewer rework.

Closes #6853

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors training run configuration mapping by extracting it into a shared utility helper (mapTrainingRunConfigOverride) and integrates it into both the historical and live training views. It also adds logic to fetch and display the active run's configuration override in the live training view. A review comment points out a bug in ProgressSection where simplifying the fallback logic causes historical views to incorrectly fall back to the active form state (config) when overrides are undefined, and provides a code suggestion to fix this behavior.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread studio/frontend/src/features/studio/sections/progress-section.tsx Outdated
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Jul 7, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

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

ℹ️ 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 studio/frontend/src/features/studio/live-training-view.tsx
Comment thread studio/frontend/src/features/studio/live-training-view.tsx Outdated
Comment thread studio/frontend/src/features/studio/sections/progress-section.tsx Outdated
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: c0631dbabb

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

@rodboev
rodboev force-pushed the pr/6853-active-run-config branch from c0631db to 237244b Compare July 7, 2026 07:32
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 237244bf87

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

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

danielhanchen added a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Jul 13, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 87ab4a9adf

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

@rodboev

rodboev commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

Closing this in favor of #7217. It overlaps the same Training Progress config surface across the same frontend files, and that newer PR already carries the narrower direction to review.

@rodboev rodboev closed this Jul 18, 2026
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.

[Bug] [studio] Training Progress shows stale/static Training Config instead of selected run config

2 participants