Skip to content

fix(overlay): overlay use and overlay hide now update config state#16154

Merged
Bahex merged 2 commits intonushell:mainfrom
Bahex:overlay-config-fix
Jul 12, 2025
Merged

fix(overlay): overlay use and overlay hide now update config state#16154
Bahex merged 2 commits intonushell:mainfrom
Bahex:overlay-config-fix

Conversation

@Bahex
Copy link
Copy Markdown
Member

@Bahex Bahex commented Jul 10, 2025

Description

Unconditionally update the config state after each overlay use and overlay hide.

The fix looks simple, but only because of the constant improvements and refactors to the codebase that have taken place over time made it possible.

Fixing these issue when they were initially filed would have been much harder.

User-Facing Changes

Overlays can add hooks, change color_config, update the config in general.

Tests + Formatting

No tests added as I still haven't figured out how to simulate the repl in tests.

After Submitting

N/A

@Bahex Bahex changed the title fix(overlay): use overlay and hide overlay now update config state fix(overlay): overlay use and overlay hide now update config state Jul 10, 2025
@Bahex Bahex added A:configuration Issue related to nu's configuration A:hooks Hooks are used to react to changes during interactive execution category:inconsistent-behavior Behavior between different commands or types inconsistent/unexpected A:environment Related to the management of environment variables/process state notes:fixes Include the release notes summary in the "Bug fixes" section labels Jul 10, 2025
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Jul 10, 2025

wow, a 2 line change. 🚀

Copy link
Copy Markdown
Member

@132ikl 132ikl left a comment

Choose a reason for hiding this comment

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

seems to make sense to me

@sholderbach
Copy link
Copy Markdown
Member

It's a beauty when plans err... well refined APIs come together :)

As there were so many issues reporting it, can we come up with a few basic tests?

@Bahex Bahex merged commit 60ca889 into nushell:main Jul 12, 2025
16 checks passed
@github-actions github-actions bot added this to the v0.106.0 milestone Jul 12, 2025
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Aug 25, 2025
nushell#16154)

- fixes nushell#5986
- fixes nushell#7760
- fixes nushell#8856
- fixes nushell#10592
- fixes nushell#11082

# Description
Unconditionally update the config state after each `overlay use` and
`overlay hide`.

The fix looks simple, but only because of the constant improvements and
refactors to the codebase that have taken place over time made it
possible.

Fixing these issue when they were initially filed would have been much
harder.

# User-Facing Changes
Overlays can add hooks, change color_config, update the config in
general.

# Tests + Formatting
No tests added as I still haven't figured out how to simulate the repl
in tests.

# After Submitting
N/A

---------

Co-authored-by: Bahex <17417311+Bahex@users.noreply.github.com>
@Bahex Bahex deleted the overlay-config-fix branch March 22, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:configuration Issue related to nu's configuration A:environment Related to the management of environment variables/process state A:hooks Hooks are used to react to changes during interactive execution category:inconsistent-behavior Behavior between different commands or types inconsistent/unexpected notes:fixes Include the release notes summary in the "Bug fixes" section

Projects

None yet

4 participants