Skip to content

Fix AI attribute templates and review feedback - #5

Open
rdavi10471a2 wants to merge 2 commits into
mainfrom
work/in-progress
Open

Fix AI attribute templates and review feedback#5
rdavi10471a2 wants to merge 2 commits into
mainfrom
work/in-progress

Conversation

@rdavi10471a2

@rdavi10471a2 rdavi10471a2 commented May 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Changes AI attribute templates to block-scoped namespaces so generated watched-project helper files avoid file-scoped namespace syntax.
  • Updates the legacy supplemental attribute generator to emit block-scoped namespace syntax too.
  • Allows an explicit diff executable path to override stale unsupported local DiffTool config values, so old copied monitors with DiffTool: VSCode can be recovered without manually editing config first.
  • Corrects AIWorkflowRunner.ExecutionFlow.md so Roslyn preflight appears before proposed snapshot creation.

Validation

  • dotnet build .\Monitor\AIWorkflowMonitor.csproj
  • dotnet build .\Monitor\Docs\Samples\TinyConsoleWatchedProject\TinyConsoleWatchedProject.csproj

Review focus

Please review this as a solo local proposal-gate tool. Focus on practical reliability bugs, misleading docs, generated-state leakage, stale config migration behavior, namespace/style consistency in generated watched-project helper files, and workflow confusion. Prefer small practical findings over broad platform redesign suggestions.

Copy link
Copy Markdown
Owner Author

@codex review this PR as a solo local proposal-gate tool. Focus on practical reliability bugs, misleading docs, generated-state leakage, stale root/diff assumptions, Razor validation behavior, WinMerge/default diff behavior, and workflow confusion. Prefer small practical findings over broad platform redesign suggestions.

@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: 0f7058d71f

ℹ️ 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 Monitor/AIWorkflowRunner.cs
Comment thread AIWorkflowRunner.ExecutionFlow.md Outdated
@rdavi10471a2 rdavi10471a2 changed the title Improve onboarding docs and tighten compare behavior Fix AI attribute templates and review feedback May 6, 2026

Copy link
Copy Markdown
Owner Author

@codex review the updated combined PR. Since the last review, the branch was rebased onto current main so the PR now contains only the remaining fixes: block-scoped AI attribute templates, explicit diff executable override for stale unsupported local DiffTool values, and corrected execution-flow ordering. Focus on practical migration/reliability issues and docs/code consistency.

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

ℹ️ 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 on lines +503 to +506
if (!string.IsNullOrWhiteSpace(explicitDiffToolPath))
{
Console.WriteLine($"WARNING: Ignoring unsupported configured DiffTool '{diffTool}' because an explicit diff executable path was supplied.");
return true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Continue validating config after diff override

When a migrated local config has both an unsupported DiffTool value and any explicit diff executable path, this early return true exits before the ContractEnforcementMode validation below runs. In that scenario a typo such as ContractEnforcementMode: Strict is accepted and later resolves to Off, silently disabling the Roslyn gate during the exact stale-config migration path this change is meant to support. Please warn/allow the diff-tool override without returning before the rest of the config checks complete.

Useful? React with 👍 / 👎.

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.

1 participant