Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,13 @@ bd close <id> # Complete work
- NEVER stop before pushing - that leaves work stranded locally
- NEVER say "ready to push when you are" - YOU must push
- If push fails, resolve and retry until it succeeds
- **SSH fallback**: If `git push` fails with SSH key errors, switch to HTTPS via `gh`:
```bash
gh config set git_protocol https
git remote set-url origin https://github.com/sthadka/jai.git
git push
# Restore SSH after:
gh config set git_protocol ssh
git remote set-url origin git@github.com:sthadka/jai.git
```
<!-- END BEADS INTEGRATION -->
14 changes: 13 additions & 1 deletion internal/sync/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,19 @@ func (e *Engine) DiscoverFields(ctx context.Context, overrides map[string]string
if f.Schema == nil {
continue
}
name := inferColumnName(f, overrides)

// If this field already has a stored name, reuse it to avoid
// re-triggering collision warnings on every sync.
name := ""
if em, ok := existing[f.ID]; ok {
name = em.Name
}
if overrideName, ok := overrides[f.ID]; ok {
name = overrideName
}
if name == "" {
name = inferColumnName(f, overrides)
}
fieldType := jiraSchemaToType(f.Schema)

// If this name is already owned by a different field, append a suffix
Expand Down
Loading