Skip to content

fix: respect infoview display settings for goals in messages (#734)#789

Open
MohammadYusif wants to merge 1 commit into
leanprover:masterfrom
MohammadYusif:fix/issue-734
Open

fix: respect infoview display settings for goals in messages (#734)#789
MohammadYusif wants to merge 1 commit into
leanprover:masterfrom
MohammadYusif:fix/issue-734

Conversation

@MohammadYusif

Copy link
Copy Markdown

Summary

  • Goals embedded in messages (e.g. the "unsolved goals" diagnostic) were rendered by InteractiveMessageTag in traceExplorer.tsx with a hardcoded settings object, so user infoview settings such as Display target before assumptions (reverseTacticState) were ignored for these goals.
  • The main goal panel derives its settings from config via goalSettingsStateOfConfig(config); the message path duplicated a frozen subset, so every display toggle was ignored for message-embedded goals.

Changes

  • lean4-infoview/src/infoview/goals.tsx: export the existing goalSettingsStateOfConfig helper.
  • lean4-infoview/src/infoview/traceExplorer.tsx: read ConfigContext and pass goalSettingsStateOfConfig(config) to <Goal>, replacing the hardcoded settings block so message-embedded goals respect the same display settings as the main goal panel.

Fixes #734

…ver#734)

Goals embedded in messages (e.g. the "unsolved goals" diagnostic) were
rendered by InteractiveMessageTag in traceExplorer.tsx with a hardcoded
settings object, so user infoview settings such as "Display target before
assumptions" (reverseTacticState) were ignored for these goals.

Derive the settings from ConfigContext via the existing
goalSettingsStateOfConfig helper (now exported from goals.tsx), so
message-embedded goals respect the same display settings as the main
goal panel.
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.

Display target before assumptions not always respected

1 participant