Skip to content

feat(contacts): add support for additional fields (urls, org, note, custom)#199

Merged
steipete merged 3 commits intoopenclaw:mainfrom
phuctm97:feature/contacts-additional-fields
Feb 16, 2026
Merged

feat(contacts): add support for additional fields (urls, org, note, custom)#199
steipete merged 3 commits intoopenclaw:mainfrom
phuctm97:feature/contacts-additional-fields

Conversation

@phuctm97
Copy link
Copy Markdown

@phuctm97 phuctm97 commented Feb 7, 2026

Summary

Adds support for additional contact fields in gog contacts create and gog contacts update commands.

New Flags

Flag Description
--org Organization/company name
--title Job title
--url URL (can be repeated for multiple URLs)
--note Note/biography
--custom Custom field as key=value (can be repeated)

Usage Examples

# Create contact with organization and URLs
gog contacts create --given "Vu" --family "Nguyen" \
  --email "vu@example.com" \
  --org "SparkNamer" --title "Co-founder" \
  --url "https://github.com/tricknguyen" \
  --url "https://linkedin.com/in/vu" \
  --note "Met at HRG batch 0"

# Add custom fields
gog contacts create --given "John" --family "Doe" \
  --custom "github=johndoe" \
  --custom "telegram=@johnd"

# Update existing contact
gog contacts update people/c123 \
  --org "New Company" \
  --url "https://newsite.com"

Changes

  • Updated ContactsCreateCmd and ContactsUpdateCmd structs with new fields
  • Updated contactsReadMask to include organizations,urls
  • Updated contactsGetReadMask to include biographies,userDefined
  • Added helper functions: primaryOrganization, primaryURL, allURLs, primaryBio, userDefinedFields
  • Updated ContactsGetCmd to display new fields

Tests

All existing tests pass.

Closes #198

OpenClaw and others added 3 commits February 16, 2026 05:22
Add support for the following contact fields in create/update commands:
- --org: Organization/company name
- --title: Job title
- --url: URLs (can be repeated for multiple)
- --note: Note/biography
- --custom: Custom key=value fields (can be repeated)

Also updates the read mask to include these fields in list/get output.

Closes openclaw#198
@steipete steipete force-pushed the feature/contacts-additional-fields branch from 0fbd6ca to 2d396bc Compare February 16, 2026 04:28
@steipete steipete merged commit 2300560 into openclaw:main Feb 16, 2026
2 of 4 checks passed
@steipete
Copy link
Copy Markdown
Collaborator

Landed via temp rebase onto main.

  • Gate: not run in this session (left as-is per request)
  • Rebased PR commit: 12bf5a2 (feat contacts fields), a5bef10 (harden custom parsing + sorting), 2d396bc (changelog)
  • Merge result head on main: 2300560

Thanks @phuctm97!

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
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.

Feature: Support additional contact fields (urls, organizations, biographies, etc.)

2 participants