helloadhavan/github_issues huggingface dataset:
Repository: vercel/next.js
Pull request: Improve error message for deprecated `experimental.dynamicIO` config

### What?

Added a specific, actionable error message when users have `experimental.dynamicIO` in their `next.config` file. Instead of the generic "invalid experimental key" message, users now see that `dynamicIO` has been replaced by `cacheComponents`, with a link to the documentation.

### Why?

When `experimental.dynamicIO` was removed, users upgrading to newer versions only saw a generic "Unrecognized key(s) in object: 'dynamicIO'" warning without any guidance on what to use instead. This forces developers to search through docs/changelogs to discover that `cacheComponents` is the replacement. A clear migration message eliminates this friction.

### How?

Added a case for `dynamicIO` in the `normalizeNextConfigZodErrors` function in `packages/next/src/server/config.ts`, following the same pattern used for `turbopackPersistentCaching` → `turbopackFileSystemCache` migrations. When Zod reports `dynamicIO` as an unrecognized key under `experimental`, the error is upgraded to a fatal error with a message pointing to `cacheComponents` and linking to the docs.

## PR checklist (Fixing a bug)

- Errors have a helpful link attached: links to https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheComponents

Changed files:
filename: packages/next/src/server/config.ts
patch: @@ -84,6 +84,12 @@ function normalizeNextConfigZodErrors(
           "\nUse 'experimental.turbopackFileSystemCacheForDev' instead."
         message +=
           '\nLearn more: https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopackFileSystemCache'
+      } else if (message.includes('dynamicIO')) {
+        shouldExit = true
+        message +=
+          '\n`experimental.dynamicIO` has been replaced by `cacheComponents`. Please update your next.config file accordingly.'
+        message +=
+          '\nLearn more: https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheComponents'
       }
     }
Repository: facebook/react
Pull request: [flags] make enableComponentPerformanceTrack static everywhere

Follow-up to https://github.com/facebook/react/pull/34665.

Already gated on `enableProfilerTimer` everywhere, which is only enabled for `__PROFILE__`, except for Flight should be unified in a future.

Changed files:
filename: packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js
patch: @@ -25,4 +25,3 @@ export const passChildrenWhenCloningPersistedNodes = __VARIANT__;
 export const enableFragmentRefs = __VARIANT__;
 export const enableFragmentRefsScrollIntoView = __VARIANT__;
 export const enableFragmentRefsInstanceHandles = __VARIANT__;
-export const enableComponentPerformanceTrack = __VARIANT__;

filename: packages/shared/forks/ReactFeatureFlags.native-fb.js
patch: @@ -77,8 +77,7 @@ export const enableSrcObject: boolean = false;
 export const enableHydrationChangeEvent: boolean = true;
 export const enableDefaultTransitionIndicator: boolean = true;
 export const ownerStackLimit = 1e4;
-export const enableComponentPerformanceTrack: boolean =
-  __PROFILE__ && dynamicFlags.enableComponentPerformanceTrack;
+export const enableComponentPerformanceTrack: boolean = true;
 export const enablePerformanceIssueReporting: boolean =
   enableComponentPerformanceTrack;
 export const enableInternalInstanceMap: boolean = false;

filename: packages/shared/forks/ReactFeatureFlags.www-dynamic.js
patch: @@ -31,7 +31,6 @@ export const enableInfiniteRenderLoopDetection: boolean = __VARIANT__;
 
 export const enableFastAddPropertiesInDiffing: boolean = __VARIANT__;
 export const enableViewTransition: boolean = __VARIANT__;
-export const enableComponentPerformanceTrack: boolean = __VARIANT__;
 export const enableScrollEndPolyfill: boolean = __VARIANT__;
 export const enableFragmentRefs: boolean = __VARIANT__;
 export const enableFragmentRefsScrollIntoView: boolean = __VARIANT__;

filename: packages/shared/forks/ReactFeatureFlags.www.js
patch: @@ -29,7 +29,6 @@ export const {
   syncLaneExpirationMs,
   transitionLaneExpirationMs,
   enableViewTransition,
-  enableComponentPerformanceTrack,
   enableScrollEndPolyfill,
   enableFragmentRefs,
   enableFragmentRefsScrollIntoView,
@@ -56,6 +55,8 @@ export const enableYieldingBeforePassive: boolean = false;
 
 export const enableThrottledScheduling: boolean = false;
 
+export const enableComponentPerformanceTrack: boolean = true;
+
 export const enablePerformanceIssueReporting: boolean = false;
 
 // Logs additional User Timing API marks for use with an experimental profiling tool.
Repository: ollama/ollama
Pull request: bugfix: add missing linear layer factory


Changed files:
filename: x/mlxrunner/model/linear.go
patch: @@ -0,0 +1,92 @@
+//go:build mlx
+
+package model
+
+import (
+	"github.com/ollama/ollama/x/mlxrunner/mlx"
+	"github.com/ollama/ollama/x/models/nn"
+)
+
+// LinearFactory builds linear layers using shared tensor maps and quant defaults.
+type LinearFactory struct {
+	tensors          map[string]*mlx.Array
+	defaultGroupSize int
+	defaultBits      int
+	defaultMode      string
+	tensorQuant      map[string]*TensorQuantInfo
+}
+
+// NewLinearFactory creates a reusable constructor for model linear layers.
+func NewLinearFactory(
+	tensors map[string]*mlx.Array,
+	defaultGroupSize, defaultBits int,
+	defaultMode string,
+	tensorQuant map[string]*TensorQuantInfo,
+) LinearFactory {
+	return LinearFactory{
+		tensors:          tensors,
+		defaultGroupSize: defaultGroupSize,
+		defaultBits:      defaultBits,
+		defaultMode:      defaultMode,
+		tensorQuant:      tensorQuant,
+	}
+}
+
+// Make constructs a linear layer at path.
+func (f LinearFactory) Make(path string) nn.LinearLayer {
+	return MakeLinearLayer(
+		f.tensors,
+		path,
+		f.defaultGroupSize,
+		f.defaultBits,
+		f.defaultMode,
+		f.tensorQuant,
+	)
+}
+
+// MakeLinearLayer constructs a linear layer from a tensor map.
+//
+// For quantized tensors (path.weight + path.weight_scale), it resolves per-tensor
+// quant params via TensorQuant metadata (with shape-based affine fallback).
+// For non-quantized tensors, it returns a standard nn.Linear.
+func MakeLinearLayer(
+	tensors map[string]*mlx.Array,
+	path string,
+	defaultGroupSize, defaultBits int,
+	defaultMode string,
+	tensorQuant map[string]*TensorQuantInfo,
+) nn.LinearLayer {
+	w := tensors[path+".weight"]
+	if w == nil {
+		return nil
+	}
+
+	scales := tensors[path+".weight_scale"]
+	if scales != nil {
+		qbiases := tensors[path+".weight_qbias"]
+		bias := tensors[path+".bias"]
+
+		groupSize, bits, mode := ResolveLinearQuantParams(
+			defaultGroupSize,
+			defaultBits,
+			defaultMode,
+			tensorQuant,
+			path+".weight",
+			w,
+			scales,
+		)
+
+		return &nn.QuantizedLinear{
+			Weight:    w,
+			Scales:    scales,
+			QBiases:   qbiases,
+			Bias:      bias,
+			GroupSize: groupSize,
+			Bits:      bits,
+			Mode:      mode,
+		}
+	}
+
+	bias := tensors[path+".bias"]
+	return nn.NewLinear(w, bias)
+}
Repository: facebook/react
Pull request: [DevTools] Update inspected element on component filter changes

## Summary

We used to only update the inspected element when selected host element changes. This is fine when Components and the browser's Elements panel are alternate. With the inspected element pane you can now have the inspected element and browsers Elements panel side-by-side.

Now we update the inspected element when the filter changes. This is mostly interestiny when the filter becomes less restrictive i.e. we can inspect an element closer to the selected host element. When the filter becomes more restrictive, the store was already selecting the nearest parent.

The new behavior may be disorienting if you're in the Components panel so we could restrict the behavior to apply only when you're changing filter from within the inspected elements pane within the browsers Elements panel. 

https://github.com/user-attachments/assets/7b0777f0-ce7b-4728-8055-4c349771fd1c

## How did you test this change?

- [x] Manually verified in Chrome


Changed files:
filename: packages/react-devtools-shared/src/backend/agent.js
patch: @@ -1086,6 +1086,15 @@ export default class Agent extends EventEmitter<{
         }
         renderer.updateComponentFilters(componentFilters);
       }
+
+      // Due to the component filters changing, we might be able
+      // to select a closer match for the currently selected host element.
+      // The store will already select a suitable parent if the the current
+      // selection is now filtered out in which cases this will be a no-op.
+      const target = window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0;
+      if (target != null) {
+        this.selectNode(target);
+      }
     };
 
   getEnvironmentNames: () => void = () => {
Repository: nodejs/node
Pull request: repl: use vm DONT_CONTEXTIFY context

REPL does not need interception behavior in the vm context. Creating
a `DONT_CONTEXTIFY` context to reduce the chance to be impacted by V8
interceptor API changes.

No observable behavior or tests should break. This does not fix the
behavior in `vm` with the V8 upgrade, only REPL is fixed.

Refs: https://github.com/nodejs/node/pull/61898#issuecomment-4082662242


Changed files:
filename: lib/repl.js
patch: @@ -1132,10 +1132,10 @@ class REPLServer extends Interface {
         session.once('Runtime.executionContextCreated', ({ params }) => {
           this[kContextId] = params.context.id;
         });
-        context = vm.createContext();
+        context = vm.createContext(vm.constants.DONT_CONTEXTIFY);
         session.post('Runtime.disable');
       }, () => {
-        context = vm.createContext();
+        context = vm.createContext(vm.constants.DONT_CONTEXTIFY);
       });
       ArrayPrototypeForEach(ObjectGetOwnPropertyNames(globalThis), (name) => {
         // Only set properties that do not already exist as a global builtin.
Repository: electron/electron
Pull request: feat: add accessibilityDisplayShouldDifferentiateWithoutColor on macOS

Backport of #49912

See that PR for details.


Notes: Added nativeTheme.shouldDifferentiateWithoutColor on macOS 

Changed files:
filename: docs/api/native-theme.md
patch: @@ -84,3 +84,7 @@ Currently, Windows high contrast is the only system setting that triggers forced
 ### `nativeTheme.prefersReducedTransparency` _Readonly_
 
 A `boolean` that indicates whether the user has chosen via system accessibility settings to reduce transparency at the OS level.
+
+### `nativeTheme.shouldDifferentiateWithoutColor` _macOS_ _Readonly_
+
+A `boolean` that indicates whether the user prefers UI that differentiates items using something other than color alone (e.g. shapes or labels). This maps to [NSWorkspace.accessibilityDisplayShouldDifferentiateWithoutColor](https://developer.apple.com/documentation/appkit/nsworkspace/accessibilitydisplayshoulddifferentiatewithoutcolor).

filename: shell/browser/api/electron_api_native_theme.cc
patch: @@ -147,7 +147,12 @@ gin::ObjectTemplateBuilder NativeTheme::GetObjectTemplateBuilder(
                    &NativeTheme::ShouldUseInvertedColorScheme)
       .SetProperty("inForcedColorsMode", &NativeTheme::InForcedColorsMode)
       .SetProperty("prefersReducedTransparency",
-                   &NativeTheme::GetPrefersReducedTransparency);
+                   &NativeTheme::GetPrefersReducedTransparency)
+#if BUILDFLAG(IS_MAC)
+      .SetProperty("shouldDifferentiateWithoutColor",
+                   &NativeTheme::ShouldDifferentiateWithoutColor)
+#endif
+      ;
 }
 
 const char* NativeTheme::GetTypeName() {

filename: shell/browser/api/electron_api_native_theme.h
patch: @@ -56,6 +56,9 @@ class NativeTheme final : public gin_helper::DeprecatedWrappable<NativeTheme>,
   bool ShouldUseInvertedColorScheme();
   bool InForcedColorsMode();
   bool GetPrefersReducedTransparency();
+#if BUILDFLAG(IS_MAC)
+  bool ShouldDifferentiateWithoutColor();
+#endif
 
   // ui::NativeThemeObserver:
   void OnNativeThemeUpdated(ui::NativeTheme* theme) override;

filename: shell/browser/api/electron_api_native_theme_mac.mm
patch: @@ -26,4 +26,9 @@
   [[NSApplication sharedApplication] setAppearance:new_appearance];
 }
 
+bool NativeTheme::ShouldDifferentiateWithoutColor() {
+  return [[NSWorkspace sharedWorkspace]
+      accessibilityDisplayShouldDifferentiateWithoutColor];
+}
+
 }  // namespace electron::api

filename: spec/api-native-theme-spec.ts
patch: @@ -6,6 +6,7 @@ import { once } from 'node:events';
 import * as path from 'node:path';
 import { setTimeout } from 'node:timers/promises';
 
+import { ifdescribe } from './lib/spec-helpers';
 import { closeAllWindows } from './lib/window-helpers';
 
 describe('nativeTheme module', () => {
@@ -119,4 +120,10 @@ describe('nativeTheme module', () => {
       expect(nativeTheme.prefersReducedTransparency).to.be.a('boolean');
     });
   });
+
+  ifdescribe(process.platform === 'darwin')('nativeTheme.shouldDifferentiateWithoutColor', () => {
+    it('returns a boolean', () => {
+      expect(nativeTheme.shouldDifferentiateWithoutColor).to.be.a('boolean');
+    });
+  });
 });
Repository: huggingface/transformers
Pull request: Fix: Update optimization.py

The `get_scheduler` function was identifying the `inverse_sqrt` scheduler type but failing to pass `**scheduler_specific_kwargs` to the underlying `get_inverse_sqrt_schedule` function. 

This caused user-defined parameters like `timescale` to be silently ignored. This commit adds the missing kwargs to the function call at line 664.

Fixes #44908


Changed files:
filename: src/transformers/optimization.py
patch: @@ -1031,7 +1031,7 @@ def scheduler_hook(param):
         return schedule_func(optimizer, num_warmup_steps=num_warmup_steps)
 
     if name == SchedulerType.INVERSE_SQRT:
-        return schedule_func(optimizer, num_warmup_steps=num_warmup_steps)
+        return schedule_func(optimizer, num_warmup_steps=num_warmup_steps, **scheduler_specific_kwargs)
 
     # wsd scheduler requires either num_training_steps or num_stable_steps
     if name == SchedulerType.WARMUP_STABLE_DECAY:
Repository: vercel/next.js
Pull request: [test] Skip flaky `segment-cache-refresh` suite

See https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest%20%40test.source.file%3Atest%2Fe2e%2Fapp-dir%2Fsegment-cache%2Frefresh%2Fsegment-cache-refresh.test.ts&agg_m=count&agg_m_source=base&agg_t=count&citest_explorer_sort=timestamp%2Cdesc&cols=%40test.status%2Ctimestamp%2C%40duration%2C%40test.type%2C%40test.name%2C%40test_session.name&currentTab=overview&eventStack=&fromUser=true&index=citest&start=1769792928107&end=1774976928107&paused=true

Changed files:
filename: test/e2e/app-dir/segment-cache/refresh/segment-cache-refresh.test.ts
patch: @@ -2,7 +2,8 @@ import { nextTestSetup } from 'e2e-utils'
 import type * as Playwright from 'playwright'
 import { createRouterAct } from 'router-act'
 
-describe('segment cache (refresh)', () => {
+// Disabled because too flaky
+describe.skip('segment cache (refresh)', () => {
   const { next, isNextDev } = nextTestSetup({
     files: __dirname,
   })
Repository: ollama/ollama
Pull request: Update: download link in README for macOS (#1)


Changed files:
filename: README.md
patch: @@ -16,7 +16,7 @@ Start building with open models.
 curl -fsSL https://ollama.com/install.sh | sh
 ```
 
-or [download manually](http://localhost:8080/download/Ollama.dmg)
+or [download manually](https://ollama.com/download/Ollama.dmg)
 
 ### Windows
Repository: electron/electron
Pull request: fix: hex-encode Windows notification icon temp filenames

#### Description of Change

Refs https://github.com/electron/electron/pull/48768
Closes https://github.com/electron/electron/issues/50424

`NotificationPresenterWin` was using `SHA1HashString(origin.spec())` directly as the basename for the temporary PNG written for toast icons.

`SHA1HashString` returns raw digest bytes, so the generated filename could contain invalid path characters on Windows. That caused `WriteFile` to fail when saving notification icons, which left toast XML without the expected icon path.

Hex-encode the digest before appending .png so the temporary filename is filesystem-safe while keeping deterministic naming for a given origin.

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included
- [x] I have built and tested this PR
- [x] `npm test` passes
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: Fixed a bug where Windows notification icons could fail to save because their temporary filenames contained invalid characters.


Changed files:
filename: shell/browser/notifications/win/notification_presenter_win.cc
patch: @@ -72,7 +72,8 @@ std::wstring NotificationPresenterWin::SaveIconToFilesystem(
 
   std::string filename;
   if (origin.is_valid()) {
-    filename = base::SHA1HashString(origin.spec()) + ".png";
+    const auto hash = base::SHA1HashString(origin.spec());
+    filename = base::HexEncode(hash) + ".png";
   } else {
     const int64_t now_usec = base::Time::Now().since_origin().InMicroseconds();
     filename = base::NumberToString(now_usec) + ".png";
Repository: vercel/next.js
Pull request: [test] Skip `unstable_dynamicStaleTime` tests due to flakiness

See https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest%20%40test.source.file%3Atest%2Fe2e%2Fapp-dir%2Fsegment-cache%2Fstaleness%2Fsegment-cache-per-page-dynamic-stale-time.test.ts&agg_m=count&agg_m_source=base&agg_t=count&citest_explorer_sort=%40duration%2Cdesc&cols=%40test.status%2Ctimestamp%2C%40duration%2C%40test.type%2C%40test.name%2C%40test_session.name&currentTab=overview&eventStack=&fromUser=false&index=citest&start=1769791991917&end=1774975991917&paused=true

Changed files:
filename: test/e2e/app-dir/segment-cache/staleness/app/per-page-config/dynamic-stale-10/page.tsx
patch: @@ -2,6 +2,7 @@ import { Suspense } from 'react'
 import { connection } from 'next/server'
 import { LinkAccordion } from '../../../components/link-accordion'
 
+// TODO: Make sure tests are unskipped before marking this as stable
 export const unstable_dynamicStaleTime = 10
 
 async function Content() {

filename: test/e2e/app-dir/segment-cache/staleness/segment-cache-per-page-dynamic-stale-time.test.ts
patch: @@ -2,7 +2,8 @@ import { nextTestSetup } from 'e2e-utils'
 import type * as Playwright from 'playwright'
 import { createRouterAct } from 'router-act'
 
-describe('segment cache (per-page dynamic stale time)', () => {
+// Disabled because too flaky
+describe.skip('segment cache (per-page dynamic stale time)', () => {
   const { next, isNextDev } = nextTestSetup({
     files: __dirname,
   })
Repository: ollama/ollama
Pull request: cmd/tui: fix powershell search

Rune was being sent instead of selection for powershell

Changed files:
filename: cmd/cmd.go
patch: @@ -1887,10 +1887,7 @@ func runInteractiveTUI(cmd *cobra.Command) {
 
 	// Selector adapters for tui
 	singleSelector := func(title string, items []config.ModelItem) (string, error) {
-		tuiItems := make([]tui.SelectItem, len(items))
-		for i, item := range items {
-			tuiItems[i] = tui.SelectItem{Name: item.Name, Description: item.Description, Recommended: item.Recommended}
-		}
+		tuiItems := tui.ReorderItems(tui.ConvertItems(items))
 		result, err := tui.SelectSingle(title, tuiItems)
 		if errors.Is(err, tui.ErrCancelled) {
 			return "", config.ErrCancelled
@@ -1899,10 +1896,7 @@ func runInteractiveTUI(cmd *cobra.Command) {
 	}
 
 	multiSelector := func(title string, items []config.ModelItem, preChecked []string) ([]string, error) {
-		tuiItems := make([]tui.SelectItem, len(items))
-		for i, item := range items {
-			tuiItems[i] = tui.SelectItem{Name: item.Name, Description: item.Description, Recommended: item.Recommended}
-		}
+		tuiItems := tui.ReorderItems(tui.ConvertItems(items))
 		result, err := tui.SelectMultiple(title, tuiItems, preChecked)
 		if errors.Is(err, tui.ErrCancelled) {
 			return nil, config.ErrCancelled

filename: cmd/tui/selector.go
patch: @@ -576,9 +576,15 @@ func (m multiSelectorModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 			}
 
 		case tea.KeyRunes:
-			m.filter += string(msg.Runes)
-			m.cursor = 0
-			m.scrollOffset = 0
+			// On some terminals (e.g. Windows PowerShell), space arrives as
+			// KeyRunes instead of KeySpace. Intercept it so toggle still works.
+			if len(msg.Runes) == 1 && msg.Runes[0] == ' ' {
+				m.toggleItem()
+			} else {
+				m.filter += string(msg.Runes)
+				m.cursor = 0
+				m.scrollOffset = 0
+			}
 		}
 	}
 

filename: cmd/tui/selector_test.go
patch: @@ -545,6 +545,43 @@ func TestMultiView_OverflowIndicator(t *testing.T) {
 	}
 }
 
+// --- Multi-select space toggle (including KeyRunes fallback for Windows PowerShell) ---
+
+func TestMultiUpdate_SpaceTogglesItem(t *testing.T) {
+	m := newMultiSelectorModel("Pick:", items("a", "b", "c"), nil)
+	m.cursor = 1
+
+	// Simulate space delivered as tea.KeySpace
+	updated, _ := m.Update(tea.KeyMsg{Type: tea.KeySpace})
+	m = updated.(multiSelectorModel)
+
+	if !m.checked[1] {
+		t.Error("space (KeySpace) should toggle the item at cursor")
+	}
+	if m.filter != "" {
+		t.Error("space should not modify filter")
+	}
+}
+
+func TestMultiUpdate_SpaceRuneTogglesItem(t *testing.T) {
+	m := newMultiSelectorModel("Pick:", items("a", "b", "c"), nil)
+	m.cursor = 1
+
+	// Simulate space delivered as tea.KeyRunes (Windows PowerShell behavior)
+	updated, _ := m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{' '}})
+	m = updated.(multiSelectorModel)
+
+	if !m.checked[1] {
+		t.Error("space (KeyRunes) should toggle the item at cursor")
+	}
+	if m.filter != "" {
+		t.Error("space rune should not be added to filter")
+	}
+	if m.cursor != 1 {
+		t.Errorf("cursor should stay at 1, got %d", m.cursor)
+	}
+}
+
 // Key message helpers for testing
 
 type keyType = int
Repository: facebook/react
Pull request: Gitignore local Claude files

Matches [Claude's defaults when it would init on its own](https://code.claude.com/docs/en/settings#available-scopes). Helpful if you let it run on your checkouts.

Changed files:
filename: .gitignore
patch: @@ -25,6 +25,7 @@ chrome-user-data
 *.swo
 /tmp
 /worktrees
+.claude/*.local.*
 
 packages/react-devtools-core/dist
 packages/react-devtools-extensions/chrome/build