Commit 791666f
Fix AgentMode initialization - auto-init when prerequisites met
Root cause: AgentMode only initialized in settings dialog, not on repo open
Fix:
1. Added _ensure_agent_mode_initialized() method
2. Call in toggleCopilotPanel when panel shown
3. Call in showCopilotSettings after config reload
4. Connected repoChanged signal to auto-initialization
5. Prerequisites: gitManager + copilotManager.client both required
6. Info logging when auto-initialized
Now AgentMode initializes automatically when both API key and Git repo are available, regardless of order or when settings were last saved.
Co-authored-by: HeDaas-Code <208586641+HeDaas-Code@users.noreply.github.com>1 parent 6553b0a commit 791666f
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
| |||
1455 | 1458 | | |
1456 | 1459 | | |
1457 | 1460 | | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
| 1461 | + | |
| 1462 | + | |
1466 | 1463 | | |
1467 | 1464 | | |
1468 | 1465 | | |
| |||
0 commit comments