Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.

fix: address review findings round 3 (PR #806)#809

Closed
github-actions[bot] wants to merge 2 commits into
mainfrom
fix/issue-698-3b63ea96
Closed

fix: address review findings round 3 (PR #806)#809
github-actions[bot] wants to merge 2 commits into
mainfrom
fix/issue-698-3b63ea96

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Addresses all review findings from expert review rounds on PR #806.

Fixes applied:

  1. 🟡 MODERATE — Advanced nav button now hidden in Remote/Demo modes (matching content section visibility)
  2. 🟡 MODERATE — Added ImportCliConfigValues() called at Settings page load to sync from ~/.copilot/config.json
  3. 🟡 MODERATE — Corrupt config.json now aborts sync instead of silently dropping unrelated CLI keys
  4. 🟡 MODERATE — Manual config.json edits preserved via import-before-write pattern
  5. 🟢 MINOR — Integration tests now have proper assertions (Assert.True, Assert.Contains)
  6. 🟢 MINOR — Atomic writes via temp-file-then-rename pattern

Tests

  • ✅ All 3667 tests pass (6 new unit tests added)
  • New tests: corrupt config abort, atomic write cleanup, ImportCliConfigValues (import, no-file, corrupt, no-change)

Warning

⚠️ Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • 192.0.2.1

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "192.0.2.1"

See Network Configuration for more information.

Generated by Review & Fix · ● 18.5M ·

github-actions Bot and others added 2 commits April 29, 2026 19:10
…bleAllHooks) in Settings UI

Add an Advanced section to the Settings page with toggles for three
Copilot CLI configuration options:

- **Compact Paste**: collapse large pasted content to save context tokens
- **Respect .gitignore**: exclude gitignored files from working-tree context
- **Disable All Hooks**: globally disable all CLI hooks

Implementation:
- Add CompactPaste, RespectGitignore, DisableAllHooks bool properties to
  ConnectionSettings with JSON round-trip support
- Add SyncCliConfig() method that merges these values into
  ~/.copilot/config.json (preserving existing keys)
- Register three new SettingDescriptors under 'Advanced' category in
  SettingsRegistry (hidden in Remote/Demo modes)
- Add Advanced nav item, section heading, and SettingEditor rendering
  in Settings.razor
- Wire OnSettingChanged to call SyncCliConfig() for advanced.* settings
- Add unit tests: defaults, round-trip, backward compat, SyncCliConfig
  write + merge, registry get/set/visibility/search
- Add integration test for Advanced section rendering

Fixes #698

Co-authored-by: copilot-agentic-workflow[bot] <224017+copilot-agentic-workflow[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Fix Advanced nav button visible in Remote/Demo modes (Finding 1)
- Add ImportCliConfigValues() for startup sync from config.json (Finding 2 & 4)
- Abort SyncCliConfig on corrupt config.json to prevent data loss (Finding 3)
- Add assertions to integration tests (Finding 5)
- Use atomic temp-file-then-rename for config writes (Finding 6)
- Add 6 new unit tests for import, corrupt-abort, and atomic write

Co-authored-by: copilot-agentic-workflow[bot] <224017+copilot-agentic-workflow[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen

Copy link
Copy Markdown
Owner

Stale fix-round PR — fixes were pushed to the main PR branch.

@PureWeen PureWeen closed this Apr 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant