|
| 1 | +# Copilot Session Context - February 5, 2026 |
| 2 | + |
| 3 | +## User Preferences (from ~/.copilot-style.md) |
| 4 | +- Short, direct responses - no AI slop |
| 5 | +- Simplicity first, minimal impact |
| 6 | +- Plan before implementing |
| 7 | +- Squash commits to 1 per PR |
| 8 | + |
| 9 | +## Repository |
| 10 | +- **Repo**: microsoft/go-sqlcmd (Go CLI for SQL Server) |
| 11 | +- **Fork**: dlevy-msft-sql/go-sqlcmd |
| 12 | +- **Default branch**: main |
| 13 | + |
| 14 | +## PR Status Summary |
| 15 | + |
| 16 | +### Ready to Merge (CI passing) |
| 17 | +| PR | Branch | Title | |
| 18 | +|----|--------|-------| |
| 19 | +| #701 | fix-chroma-tests | deps: bump chroma v2.23.1 and Go 1.24.13 | |
| 20 | +| #692 | feat/devcontainer | feat: add devcontainer for VS Code and GitHub Codespaces | |
| 21 | +| #637 | no-bom-flag | Add --no-bom flag for ODBC sqlcmd compatibility | |
| 22 | +| #639 | docs/fix-readme-freshness | docs: update README for documentation freshness | |
| 23 | +| #636 | exit-multiline | Implement multi-line EXIT(query) support | |
| 24 | +| #635 | r-default-fix | Allow -r without argument, defaulting to 0 | |
| 25 | +| #633 | lint-cleanup | Fix linting warnings | |
| 26 | +| #624 | feature/raw-error-messages | Add -j (--raw-errors) flag | |
| 27 | + |
| 28 | +### May Need Attention |
| 29 | +| PR | Branch | Status | |
| 30 | +|----|--------|--------| |
| 31 | +| #688 | pr-685 | open vscode/ssms commands - check CI | |
| 32 | +| #638 | round-out-part2 | -f codepage flag - check CI | |
| 33 | +| #632 | perftrace | :perftrace and :help commands - check CI | |
| 34 | +| #631 | print-statistics | -p flag for statistics - check CI | |
| 35 | +| #630 | serverlist-command | :serverlist command - check CI | |
| 36 | +| #628 | regional-settings | -R and -f flags - check CI | |
| 37 | +| #626 | feature/allow-q-with-i | Allow -q with -i - check CI | |
| 38 | + |
| 39 | +### External PRs |
| 40 | +| PR | Owner | Status | |
| 41 | +|----|-------|--------| |
| 42 | +| #693 | dependabot | CLOSE - superseded by #701 | |
| 43 | +| #682 | copilot-swe-agent | Waiting for Copilot to fix lint error | |
| 44 | + |
| 45 | +## Common Lint Fixes Applied |
| 46 | +All PRs needed these patterns fixed: |
| 47 | +```go |
| 48 | +// Before (fails errcheck) |
| 49 | +defer os.Remove(file.Name()) |
| 50 | +defer file.Close() |
| 51 | + |
| 52 | +// After |
| 53 | +defer func() { _ = os.Remove(file.Name()) }() |
| 54 | +defer func() { _ = file.Close() }() |
| 55 | +``` |
| 56 | + |
| 57 | +## CI Notes |
| 58 | +- Go Vulnerability Check requires go1.24.13 (fixed in #701) |
| 59 | +- golangci-lint runs on PR changes only |
| 60 | +- Build runs tests against Linux SQL Server container |
| 61 | + |
| 62 | +## Quick Commands |
| 63 | +```powershell |
| 64 | +# Check all your open PRs |
| 65 | +gh pr list --author dlevy-msft-sql --repo microsoft/go-sqlcmd |
| 66 | +
|
| 67 | +# Check CI status for a PR |
| 68 | +gh pr checks <PR#> --repo microsoft/go-sqlcmd |
| 69 | +
|
| 70 | +# Get lint errors from failed run |
| 71 | +gh run view <RUN_ID> --log-failed --repo microsoft/go-sqlcmd 2>&1 | Select-String "##\[error\]" |
| 72 | +
|
| 73 | +# Squash commits on a branch |
| 74 | +git fetch origin <branch> |
| 75 | +git checkout <branch> |
| 76 | +git reset --hard origin/<branch> |
| 77 | +git reset --soft $(git merge-base HEAD upstream/main) |
| 78 | +git commit -m "feat: description" |
| 79 | +git push origin <branch> --force-with-lease |
| 80 | +``` |
| 81 | + |
| 82 | +## Files Modified This Session |
| 83 | +- `.devcontainer/README.md` - Updated ARM64 guidance to recommend Codespaces |
| 84 | +- `.github/workflows/security.yml` - Updated go-version to 1.24.13 |
| 85 | +- `pkg/sqlcmd/commands_test.go` - Various errcheck fixes |
| 86 | +- `pkg/sqlcmd/format_test.go` - Made colorizer test more flexible |
| 87 | +- `cmd/sqlcmd/sqlcmd_test.go` - Various errcheck fixes |
| 88 | +- `internal/tools/tool/tool_test.go` - Changed panic test to error test |
| 89 | + |
| 90 | +## Personal Instructions Location |
| 91 | +Read at start of each session: |
| 92 | +```powershell |
| 93 | +Get-Content "C:/Users/DLevy/.copilot-style.md" |
| 94 | +``` |
0 commit comments